yyl
2026-03-04 bc1cb6da854cb2e9144f10ed55330a537ecdca16
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' 未加载,跳过公式代码生成");
            return;
        }
        var propertyFormula = config.Numerical1;
        var fightPropertyFormula = config.Numerical2;
        var fightPowerFormula = config.Numerical3;
@@ -225,7 +236,7 @@
        // }
        // else
        {
            done = true;
            // done = true;
        }
        ExceptionReport();