15 lines
499 B
C#
15 lines
499 B
C#
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;
|
|
if (closeOthers && ui != null)
|
|
UIManager.Instance.CloseAllNormalExcept(UINameConst.UI_Loading); // 之前的移除方法有问题
|
|
}
|
|
}
|
|
} |