hch
2025-12-11 ce4a0a0f6d837b5ebb5c84073804da95aac68c22
0312 进入游戏场景后 关闭debug日志
2个文件已修改
28 ■■■■ 已修改文件
Main/Main.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Manager/StageManager.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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()
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)