From 5e6a8851aebafa74c3ed687b3cda44fd3282d25f Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期五, 17 五月 2019 19:39:48 +0800
Subject: [PATCH] Merge branch 'master' into ClientPreciousDungeon

---
 System/Debug/DebugUtility.cs |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/System/Debug/DebugUtility.cs b/System/Debug/DebugUtility.cs
index bc0ae96..596b057 100644
--- a/System/Debug/DebugUtility.cs
+++ b/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;
             }
         }
 

--
Gitblit v1.8.0