From 6208ed5ed833142a459d0dc8ad8622ca8047a80e Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 13 五月 2025 11:23:07 +0800
Subject: [PATCH] update

---
 Main/Manager/ConfigManager.cs |   26 ++++++++++++++------------
 1 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/Main/Manager/ConfigManager.cs b/Main/Manager/ConfigManager.cs
index 51ea8a3..f9de79d 100644
--- a/Main/Manager/ConfigManager.cs
+++ b/Main/Manager/ConfigManager.cs
@@ -33,6 +33,17 @@
         isLoadFinished = false;
 
         // 鍔犺浇閰嶇疆鏂囦欢
+        int totalConfigs = 1;
+        Type[] configTypes = new Type[] {
+            typeof(FamilyConfig)
+        };
+
+        // 閫愪釜鍔犺浇閰嶇疆骞舵洿鏂拌繘搴�
+        for (int i = 0; i < configTypes.Length; i++)
+        {
+            await LoadConfigByType(configTypes[i]);
+            loadingProgress = (float)(i + 1) / totalConfigs;
+        }
 
         // 鍔犺浇瀹屾垚鍚庤缃甶sLoadFinished涓簍rue
         loadingProgress = 1f;
@@ -68,11 +79,6 @@
             Debug.LogError($"鎵句笉鍒伴厤缃枃浠�: {configName}");
         }
     }
-
-
-
-
-
 
     private async UniTask LoadConfig<T>() where T : class
     {
@@ -122,11 +128,7 @@
 
     public override void Release()
     {
-        // 娌℃湁鎵惧埌閰嶇疆绫�
+        // 娓呯┖ FamilyConfig 瀛楀吀
+        ClearConfigDictionary<FamilyConfig>();
     }
-
-
-
-
-
-}
\ No newline at end of file
+}

--
Gitblit v1.8.0