From ce4a0a0f6d837b5ebb5c84073804da95aac68c22 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 11 十二月 2025 12:36:57 +0800
Subject: [PATCH] 0312 进入游戏场景后 关闭debug日志

---
 Main/Manager/StageManager.cs |   14 ++++++++++++++
 Main/Main.cs                 |   14 --------------
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/Main/Main.cs b/Main/Main.cs
index c8845f3..8d58b09 100644
--- a/Main/Main.cs
+++ b/Main/Main.cs
@@ -125,20 +125,6 @@
         //閿�姣佹墍鏈夋垬鍦�
         BattleManager.Instance.DestroyAllBattleField();
 
-        //娓告垙鍐呮棩蹇楀叧闂�
-#if !UNITY_EDITOR
-        if (File.Exists(Directory.GetParent(Application.persistentDataPath) + "/Debug") ||
-        LocalSave.GetString("#@#BrancH") != string.Empty)
-        {
-            Debug.unityLogger.logEnabled = true;
-        }
-        else
-        { 
-            Debug.unityLogger.logEnabled = true;
-        }
-
-#endif
-
     }
 
     private static void ReleaseMgrs()
diff --git a/Main/Manager/StageManager.cs b/Main/Manager/StageManager.cs
index 5d1fcad..8ba2069 100644
--- a/Main/Manager/StageManager.cs
+++ b/Main/Manager/StageManager.cs
@@ -128,6 +128,20 @@
         AfterLoadingGameScene?.Invoke();
 
         UIManager.Instance.OpenWindow<MainWin>();
+
+        //娓告垙鍐呮棩蹇楀叧闂�
+#if !UNITY_EDITOR
+        if (File.Exists(Directory.GetParent(Application.persistentDataPath) + "/Debug") ||
+        LocalSave.GetString("#@#BrancH") != string.Empty)
+        {
+            Debug.unityLogger.logEnabled = true;
+        }
+        else
+        { 
+            Debug.unityLogger.logEnabled = false;
+        }
+
+#endif
     }
 
     protected async UniTask OnLoading(AsyncOperation asyncOperation, Func<float> getLoadingProgress, Func<UniTask> anthorTask = null)

--
Gitblit v1.8.0