From 1ab047b5fdd933c38ba0519ec2e83a44512ea8d7 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 26 三月 2026 17:46:11 +0800
Subject: [PATCH] webgl代码合并 1

---
 Main/System/Debug/DebugLogin.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Main/System/Debug/DebugLogin.cs b/Main/System/Debug/DebugLogin.cs
index 6e2981c..3dc2939 100644
--- a/Main/System/Debug/DebugLogin.cs
+++ b/Main/System/Debug/DebugLogin.cs
@@ -61,6 +61,11 @@
 
     public void Login()
     {
+        if (null == VersionConfig.config)
+        {
+            throw new System.Exception("VersionConfig is null when Login, game will pause here");
+        }
+
         appidRecorder = appid.text;
         serverIdRecorder = serverId.text;
         accountRecorder = account.text;
@@ -72,8 +77,8 @@
 
         if (!string.IsNullOrEmpty(appid.text))
         {
-            bool needRestore = VersionConfig.Get().m_AppId != appid.text;
-            VersionConfig.Get().m_AppId = appid.text;
+            bool needRestore = VersionConfig.config.m_AppId != appid.text;
+            VersionConfig.config.m_AppId = appid.text;
 #if UNITY_EDITOR
             //debug鐧诲綍鍚庣浜屾鍚姩榛樿鎭㈠test
             if (needRestore)

--
Gitblit v1.8.0