少年修仙传客户端代码仓库
client_Wu Xijin
2019-04-27 edd30f87b67126d317254208c07bea80e876cd0b
3335 更新主界面管理逻辑。
1个文件已修改
9 ■■■■■ 已修改文件
System/WindowBase/WindowCenter.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/WindowBase/WindowCenter.cs
@@ -553,6 +553,7 @@
        float checkTimer = 0f;
        private void LateUpdate()
        {
            var checkMainWinImmedidately = closeCommands.Count + openCommands.Count > 0;
            while (closeCommands.Count > 0)
            {
                var command = closeCommands[0];
@@ -594,7 +595,7 @@
            }
            checkTimer += Time.deltaTime;
            checkTimer += checkMainWinImmedidately ? 1f : Time.deltaTime;
            if (checkTimer > 0.5f)
            {
                checkTimer = 0f;
@@ -609,15 +610,15 @@
                        && !IsOpen("HazyRegionDialogueWin")
                        && !IsOpen("NormalDialogueWin");
                    if (exceptOpen != IsOpen("MainInterfaceWin"))
                    if (exceptOpen != IsOpen("MainInterfaceWin") && windows.ContainsKey("MainInterfaceWin"))
                    {
                        if (exceptOpen)
                        {
                            Open("MainInterfaceWin", true);
                            windows["MainInterfaceWin"].Open();
                        }
                        else
                        {
                            Close("MainInterfaceWin");
                            windows["MainInterfaceWin"].CloseImmediately();
                        }
                    }
                }