| | |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | using System.Linq; |
| | | using Cysharp.Threading.Tasks; |
| | | using UnityEngine; |
| | | public class ConfigInitTask : LaunchTask |
| | | { |
| | |
| | | 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); //有更新再初始化一次 |
| | | } |
| | |
| | | |
| | | #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; |
| | |
| | | // } |
| | | // else |
| | | { |
| | | done = true; |
| | | // done = true; |
| | | } |
| | | |
| | | ExceptionReport(); |