15 lines
437 B
C#
15 lines
437 B
C#
using System.Threading.Tasks;
|
|
using Cysharp.Threading.Tasks;
|
|
|
|
namespace Gameplay.UI
|
|
{
|
|
public partial class Utils
|
|
{
|
|
public static async UniTask ShowLoadingUI(bool closeOthers)
|
|
{
|
|
UIWindow ui = await UI_LoadingController.Open();
|
|
if (closeOthers && ui != null)
|
|
UIManager.Instance.CloseAllNormalExcept(UINameConst.UI_Loading); // 之前的移除方法有问题
|
|
}
|
|
}
|
|
} |