少年修仙传客户端代码仓库
client_Wu Xijin
2019-05-17 80ff3dcc47cb1795fb8c3c0d4869bd17228e099a
3335 天生debug包也支持切换分支
1个文件已修改
15 ■■■■■ 已修改文件
System/Debug/DebugUtility.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Debug/DebugUtility.cs
@@ -42,15 +42,16 @@
        {
            var parentDirectory = Directory.GetParent(Application.persistentDataPath);
            debugAccount = File.Exists(parentDirectory + "/Debug");
        }
            if (debugAccount)
        if (debugAccount)
        {
            var parentDirectory = Directory.GetParent(Application.persistentDataPath);
            var content = File.ReadAllText(parentDirectory + "/Debug");
            if (!string.IsNullOrEmpty(content))
            {
                var content = File.ReadAllText(parentDirectory + "/Debug");
                if (!string.IsNullOrEmpty(content))
                {
                    var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
                    debugBranch = json.branch;
                }
                var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
                debugBranch = json.branch;
            }
        }