From 918152c7c6ea3e7ea070abfc379db2cf0935b582 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 03 七月 2025 10:14:15 +0800
Subject: [PATCH] 18 子 2D卡牌客户端搭建 / 2D卡牌客户端搭建 配置表加载相关

---
 Assets/Editor/ConfigGen/ConfigGenerater.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Assets/Editor/ConfigGen/ConfigGenerater.cs b/Assets/Editor/ConfigGen/ConfigGenerater.cs
index 12fce6b..3cce081 100644
--- a/Assets/Editor/ConfigGen/ConfigGenerater.cs
+++ b/Assets/Editor/ConfigGen/ConfigGenerater.cs
@@ -246,7 +246,7 @@
             sb.AppendLine("        for (int i = 0; i < configTypes.Length; i++)");
             sb.AppendLine("        {");
             sb.AppendLine("            var sw = System.Diagnostics.Stopwatch.StartNew();");
-            sb.AppendLine("            await LoadConfigByType(configTypes[i]);");
+            sb.AppendLine("            LoadConfigByType(configTypes[i]);");
             sb.AppendLine("            sw.Stop();");
             sb.AppendLine("#if UNITY_EDITOR");
             sb.AppendLine("            if (sw.ElapsedMilliseconds >= 100)");
@@ -278,7 +278,7 @@
         sb.AppendLine();
         
         // 娣诲姞LoadConfigByType鏂规硶
-        sb.AppendLine("    public async UniTask LoadConfigByType(Type configType)");
+        sb.AppendLine("    public void LoadConfigByType(Type configType)");
         sb.AppendLine("    {");
         sb.AppendLine("        string configName = configType.Name;");
         sb.AppendLine("        if (configName.EndsWith(\"Config\"))");

--
Gitblit v1.8.0