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

15 lines
437 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)
{
2024-04-16 16:50:49 +08:00
UIWindow ui = await UI_LoadingController.Open();
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
}
}
}