少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-05 edc3ba8bca721f1d333f79461c20e8a221975ea5
3335 重构窗口管理
1个文件已修改
42 ■■■■■ 已修改文件
System/WindowBase/PopupWindowsProcessor.cs 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/WindowBase/PopupWindowsProcessor.cs
@@ -2,9 +2,47 @@
using System.Collections.Generic;
using UnityEngine;
public class PopupWindowsProcessor : MonoBehaviour
public class PopupWindowsProcessor : SingletonMonobehaviour<PopupWindowsProcessor>
{
    Queue<string> popupWindowQueue = new Queue<string>();
    public void Add(string name)
    {
    }
}
    public void Remove(string name)
    {
    }
    private void LateUpdate()
    {
        if (StageLoad.Instance.isLoading)
        {
            return;
        }
        if (StageLoad.Instance.currentStage == null)
        {
            return;
        }
        if (StageLoad.Instance.stageType == Stage.E_StageType.MainCity)
        {
            return;
        }
        if (MapUtility.IsDungeon(PlayerDatas.Instance.baseData.MapID))
        {
            return;
        }
        if (popupWindowQueue.Count == 0)
        {
            return;
        }
    }
}