From 25eb0e50d4e815efb16d1a9953beac6ea1c7cfc3 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期六, 28 三月 2026 10:14:32 +0800
Subject: [PATCH] webgl merge

---
 Assets/Launch/VersionConfigEx.cs |   27 ++++++++++++---------------
 1 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/Assets/Launch/VersionConfigEx.cs b/Assets/Launch/VersionConfigEx.cs
index 00a3651..4dd908d 100644
--- a/Assets/Launch/VersionConfigEx.cs
+++ b/Assets/Launch/VersionConfigEx.cs
@@ -66,20 +66,8 @@
     {
         get
         {
-            if (string.IsNullOrEmpty(m_GameId))
-            {
-                var gameText = Resources.Load<TextAsset>("Game");
-                if (gameText != null)
-                {
-                    m_GameId = gameText.text;
-                }
-                else
-                {
-                    m_GameId = "xssg";
-                }
-            }
-
-            return m_GameId;
+            // m_GameId 鐢� Get() 寮傛棰勫姞杞斤紝姝ゅ鐩存帴杩斿洖缂撳瓨鍊�
+            return string.IsNullOrEmpty(m_GameId) ? "xssg" : m_GameId;
         }
     }
 
@@ -159,7 +147,7 @@
         set { m_SdkFileName = value; }
     }
 
-    static VersionConfigEx config = null;
+    public static VersionConfigEx config = null;
     public async static UniTask<VersionConfigEx> Get()
     {
         if (config == null)
@@ -173,6 +161,15 @@
             }
         }
 
+        // 棰勫姞杞� gameId
+        if (config != null && string.IsNullOrEmpty(config.m_GameId))
+        {
+            var gameReq = Resources.LoadAsync<TextAsset>("Game");
+            await gameReq;
+            TextAsset gameText = gameReq.asset as TextAsset;
+            config.m_GameId = gameText != null ? gameText.text : "xssg";
+        }
+
         return config;
     }
 

--
Gitblit v1.8.0