public override void DoStart() { base.DoStart(); _config = Resources.Load <GameConfig>(_gameConfigService.ConfigPath); _effectMgr = _effectService as EffectService; }
public static void SaveToJson(GameConfig config) { var json = JsonUtil.ToJson(config); File.WriteAllText(Application.dataPath + "/Resources/Config/GameConfig.json", json); }
public override void DoStart() { base.DoStart(); _config = Resources.Load <GameConfig>(GameConfig.ConfigPath); }
public override void DoAwake(IServiceContainer container) { _config = Resources.Load <GameConfig>(configPath); _config.DoAwake(); }