少年修仙传客户端代码仓库
client_Wu Xijin
2019-05-17 c5070c0f2fffa1ffb537a644d0fc683796729bb1
System/Debug/DebugUtility.cs
@@ -49,11 +49,14 @@
            if (Application.isMobilePlatform)
            {
                var parentDirectory = Directory.GetParent(Application.persistentDataPath);
                var content = File.ReadAllText(parentDirectory + "/Debug");
                if (!string.IsNullOrEmpty(content))
                if (File.Exists(parentDirectory + "/Debug"))
                {
                    var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
                    debugBranch = json.branch;
                    var content = File.ReadAllText(parentDirectory + "/Debug");
                    if (!string.IsNullOrEmpty(content))
                    {
                        var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
                        debugBranch = json.branch;
                    }
                }
            }
        }