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