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)
|
2024-04-10 17:21:24 +08:00
|
|
|
UIManager.Instance.CloseAllNormalExcept(UINameConst.UI_Loading); // 之前的移除方法有问题
|
2024-01-10 14:31:25 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|