From 51b0f6ed9f4e1d3bb6f8144470b46908c7699a96 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 11 五月 2026 16:20:37 +0800
Subject: [PATCH] Merge branch 'master' into h5version

---
 Main/System/Debug/DebugUtility.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Main/System/Debug/DebugUtility.cs b/Main/System/Debug/DebugUtility.cs
index c66db29..67551b2 100644
--- a/Main/System/Debug/DebugUtility.cs
+++ b/Main/System/Debug/DebugUtility.cs
@@ -47,8 +47,12 @@
             }
             else
             {
+#if !UNITY_WEBGL
                 var parentDirectory = Directory.GetParent(Application.persistentDataPath);
                 debugAccount = File.Exists(parentDirectory + "/Debug");
+#else
+                debugAccount = false;
+#endif
             }
 
             if (LocalSave.GetString("#@#BrancH") != string.Empty)
@@ -70,6 +74,7 @@
 
             if (debugAccount)
             {
+#if !UNITY_WEBGL
                 if (Application.isMobilePlatform)
                 {
                     var parentDirectory = Directory.GetParent(Application.persistentDataPath);
@@ -83,6 +88,7 @@
                         }
                     }
                 }
+#endif
             }
         }).Forget();
         

--
Gitblit v1.8.0