yyl
2026-02-11 3f2cd27c5dfb3b450245bf1a37fc1b3414031c7c
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();
    }