NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Utils.UI.cs

15 lines
499 B
C#
Raw Normal View History

2024-01-10 14:31:25 +08:00
using System.Threading.Tasks;
using Cysharp.Threading.Tasks;
namespace Gameplay.UI
{
public partial class Utils
{
public static async UniTask ShowLoadingUI(bool closeOthers)
{
UI_LoadingController ui = await UIManager.Instance.OpenWindow(UINameConst.UI_Loading) as UI_LoadingController;
2024-01-10 14:31:25 +08:00
if (closeOthers && ui != null)
UIManager.Instance.CloseAllNormalExcept(UINameConst.UI_Loading); // 之前的移除方法有问题
2024-01-10 14:31:25 +08:00
}
}
}