From e40a47e6889372bfd7846d675bc931eab32220b1 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 27 六月 2025 15:08:25 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/Manager/UIManager.cs |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/Main/Manager/UIManager.cs b/Main/Manager/UIManager.cs
index 21187f3..b7a1d14 100644
--- a/Main/Manager/UIManager.cs
+++ b/Main/Manager/UIManager.cs
@@ -446,7 +446,9 @@
         foreach (var ui in uiToClose)
         {
             // 璁板綍鏃ュ織
+#if UNITY_EDITOR
             Debug.Log($"閿�姣侀暱鏃堕棿鏈娇鐢ㄧ殑UI: {ui.uiName}, 绌洪棽鍥炲悎鏁�: {currentRound - ui.lastUsedRound}");
+#endif
             // 閿�姣乁I瀵硅薄
             GameObject.Destroy(ui.gameObject);
         }
@@ -614,7 +616,9 @@
 
         if (closedUIDict.TryGetValue(uiName, out closedUIList) && closedUIList.Count > 0)
         {
+            #if UNITY_EDITOR
             Debug.Log("OpenWindow getFromClosedDict " + uiName);
+            #endif
 
             returnValue = closedUIList[0] as UIBase;
             closedUIList.RemoveAt(0);
@@ -626,7 +630,9 @@
         }
         else
         {
+            #if UNITY_EDITOR
             Debug.Log("OpenWindow getNewLoad " + uiName);
+            #endif
             returnValue = LoadUIResource(uiName);
             if (returnValue == null)
             {
@@ -752,8 +758,9 @@
         
         // 鑾峰彇UI绫诲瀷鍚嶇О
         string uiName = ui.uiName;
-
+#if UNITY_EDITOR
         Debug.Log("CloseWindow " + uiName + " destroy : " + destroy.ToString());
+#endif
 
         // 鏀堕泦鎵�鏈夊瓙UI
         List<UIBase> childrenUI = new List<UIBase>();
@@ -810,7 +817,7 @@
         // 鍏抽棴UI
         ui.HandleClose();
         OnCloseWindow?.Invoke(ui);
-        
+
         if (destroy)
         {
             // 閿�姣乁I瀵硅薄
@@ -824,8 +831,10 @@
                 closedUIDict[uiName] = new List<UIBase>();
             }
             closedUIDict[uiName].Add(ui);
-            
+
+#if UNITY_EDITOR
             Debug.Log("CloseWindow " + uiName + " destroy : " + destroy.ToString() + " push to closedUIDict");
+#endif
 
             // 闅愯棌UI (浜ょ粰handle close鍐呴儴鑷繁鍘诲仛)
             // ui.gameObject.SetActive(false);

--
Gitblit v1.8.0