初始化
This commit is contained in:
34
UnityGame/Assets/Scripts/ThirdParty/YIUIFramework/Panel/Mgr/PanelMgr.cs
vendored
Normal file
34
UnityGame/Assets/Scripts/ThirdParty/YIUIFramework/Panel/Mgr/PanelMgr.cs
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace YIUIFramework
|
||||
{
|
||||
/// <summary>
|
||||
/// YIUI 面板管理器
|
||||
/// </summary>
|
||||
public partial class PanelMgr : MgrSingleton<PanelMgr>
|
||||
{
|
||||
//低品质 将会影响动画等逻辑 也可以根据这个参数自定义一些区别
|
||||
public static bool IsLowQuality = false;
|
||||
|
||||
//绑定初始化情况
|
||||
public static bool BindInit { private set; get; }
|
||||
|
||||
protected override async UniTask<bool> MgrAsyncInit()
|
||||
{
|
||||
BindInit = UIBindHelper.InitAllBind();
|
||||
|
||||
if (!await InitRoot()) return false;
|
||||
|
||||
InitSafeArea();
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void OnDispose()
|
||||
{
|
||||
ResetRoot();
|
||||
OnBlockDispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user