From 0fa617a09eedf6bdb25eda55fac1d3344859fd93 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 31 三月 2026 19:46:31 +0800
Subject: [PATCH] webgl
---
Main/System/ClientVersion/VersionConfig.cs | 34 ++++------------------------------
1 files changed, 4 insertions(+), 30 deletions(-)
diff --git a/Main/System/ClientVersion/VersionConfig.cs b/Main/System/ClientVersion/VersionConfig.cs
index c9f8c69..d4d949a 100644
--- a/Main/System/ClientVersion/VersionConfig.cs
+++ b/Main/System/ClientVersion/VersionConfig.cs
@@ -244,36 +244,10 @@
}
public static VersionConfig config = null;
- // public static VersionConfig Get()
- // {
- // if (config == null)
- // {
- // if (Application.isEditor)
- // {
- // config = Resources.Load<VersionConfig>("VersionConfig");
- // //debug鐧诲綍鍚庣浜屾鍚姩榛樿鎭㈠test
- // if (LocalSave.GetBool("RestoreTest"))
- // {
- // config.m_AppId = "test";
- // LocalSave.SetBool("RestoreTest", false);
- // Debug.Log("appid 鎭㈠test");
- // }
-
- // }
- // else
- // {
- // var text = Resources.Load<TextAsset>("VersionConfigEx");
- // if (text != null)
- // {
- // config = ScriptableObject.CreateInstance<VersionConfig>();
- // var json = JsonMapper.ToObject(text.text);
- // ReadJson(json); //閫愪竴瑙f瀽锛屼笉鐢╒ersionConfig绫荤粨鏋勮鍙栵紝鍥犱负鍙橀噺瀹氫箟鏄寜asset鐨勭粨鏋勫畾涔夌殑
- // }
- // }
- // }
-
- // return config;
- // }
+ public static VersionConfig Get()
+ {
+ return config;
+ }
public static void ReadJson(JsonData _data)
{
--
Gitblit v1.8.0