From edc3ba8bca721f1d333f79461c20e8a221975ea5 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 05 二月 2019 09:55:30 +0800
Subject: [PATCH] 3335 重构窗口管理
---
System/WindowBase/PopupWindowsProcessor.cs | 42 ++++++++++++++++++++++++++++++++++++++++--
1 files changed, 40 insertions(+), 2 deletions(-)
diff --git a/System/WindowBase/PopupWindowsProcessor.cs b/System/WindowBase/PopupWindowsProcessor.cs
index 03b7fc1..343eef8 100644
--- a/System/WindowBase/PopupWindowsProcessor.cs
+++ b/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;
+ }
+
+ }
+
+}
\ No newline at end of file
--
Gitblit v1.8.0