private void Awake() { //初始化配置文件加载函数 ActionMachineHelper.Init(OnActionMachineConfigLoader); input = new GameInput(); input.Enable(); Physics.autoSimulation = false; }
private void InitConfigs() { foreach (var asset in configAssets) { var config = DataUtility.FromJson <MachineConfig>(asset.text); configDict.Add(asset.name, config); } ActionMachineHelper.Init(LoadConfig); }