From bc1cb6da854cb2e9144f10ed55330a537ecdca16 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 04 三月 2026 14:35:57 +0800
Subject: [PATCH] 466 h5版本 资源规则修改 打包修改(未完成 勿拉取)

---
 Main/Core/GameEngine/Launch/ConfigInitTask.cs |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/Main/Core/GameEngine/Launch/ConfigInitTask.cs b/Main/Core/GameEngine/Launch/ConfigInitTask.cs
index 3b3d4ce..186c45e 100644
--- a/Main/Core/GameEngine/Launch/ConfigInitTask.cs
+++ b/Main/Core/GameEngine/Launch/ConfigInitTask.cs
@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.IO;
 using System.Linq;
+using Cysharp.Threading.Tasks;
 using UnityEngine;
 public class ConfigInitTask : LaunchTask
 {
@@ -19,6 +20,11 @@
         duration = Mathf.Max(0.5f, expectTime);
         threshold = Application.platform == RuntimePlatform.WindowsEditor ? 1f : 0.9f;
 
+        ConfigManager.Instance.PreInit().ContinueWith(() =>
+        {
+            done = true;
+        }).Forget();
+
         // LaunchPostProcess.Instance.Begin();
         // InitialFunctionConfig.Init(true);   //鏈夋洿鏂板啀鍒濆鍖栦竴娆�
     }
@@ -34,6 +40,11 @@
 
 #if UNITY_EDITOR
         var config = FuncConfigConfig.Get("HeroAttrFormula");
+        if (config == null)
+        {
+            Debug.LogWarning("ConfigInitTask.End: FuncConfigConfig 'HeroAttrFormula' 鏈姞杞斤紝璺宠繃鍏紡浠g爜鐢熸垚");
+            return;
+        }
         var propertyFormula = config.Numerical1;
         var fightPropertyFormula = config.Numerical2;
         var fightPowerFormula = config.Numerical3;
@@ -225,7 +236,7 @@
         // }
         // else
         {
-            done = true;
+            // done = true;
         }
 
         ExceptionReport();

--
Gitblit v1.8.0