Main/System/UIBase/UIBase.cs
@@ -176,6 +176,7 @@ { //延迟x帧后可点击,防止点击过快立即关闭了 await UniTask.Delay(200); if (this == null) return; // destroyed during await btnClickEmptyClose.enabled = true; } } @@ -208,6 +209,7 @@ protected async void ExecuteNextFrame(Action _action) { await UniTask.DelayFrame(1); if (this == null) return; // destroyed during await _action?.Invoke(); } @@ -422,6 +424,7 @@ public async UniTask DelayCloseWindow(int delayTime = 30) { await UniTask.Delay(delayTime); if (this == null) return; // destroyed during await CloseWindow(); }