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

---
 Main/Main.cs |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/Main/Main.cs b/Main/Main.cs
index 1d52dd8..ac56272 100644
--- a/Main/Main.cs
+++ b/Main/Main.cs
@@ -120,6 +120,21 @@
         ClearGameData();
         //閿�姣佹墍鏈夋垬鍦�
         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 = false;
+        }
+
+#endif
+
     }
 
     private static void ReleaseMgrs()

--
Gitblit v1.8.0