System/Debug/DebugUtility.cs
@@ -26,6 +26,9 @@ } } public int debugBranch = -1; public void Init() { if (VersionConfig.Get().debugVersion) @@ -36,6 +39,12 @@ { var parentDirectory = Directory.GetParent(Application.persistentDataPath); debugAccount = File.Exists(parentDirectory + "/Debug"); if (debugAccount) { var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug")); debugBranch = json.branch; } } } @@ -72,6 +81,11 @@ struct DebugAuthority { public int dbg; } public class DebugBranch { public int branch = -1; } }