Files
Fishing2/Assets/Scripts/UI/Loading/LoadingPanel.cs
2025-07-03 14:16:18 +08:00

46 lines
962 B
C#

// 本脚本只在不存在时会生成一次。已存在不会再次生成覆盖
using UnityEngine;
using NBC;
namespace NBF
{
public struct LoadingShowParam
{
public int Style;
public int StartProgress;
public LoadingShowParam(int style, int startProgress)
{
StartProgress = startProgress;
Style = style;
}
}
public partial class LoadingPanel : UIPanel
{
public static readonly LoadingTask<LoadingPanel> LoadingTask = new();
protected override void OnInit()
{
ContentPane.sortingOrder = UIDef.UIOrder.Loading;
}
protected override void OnShow()
{
base.OnShow();
Progress.value = 100;
}
protected override void OnHide()
{
base.OnHide();
}
protected override void OnDestroy()
{
base.OnDestroy();
}
}
}