Example #1
0
 public override void DoStart()
 {
     base.DoStart();
     _config    = Resources.Load <GameConfig>(_gameConfigService.ConfigPath);
     _effectMgr = _effectService as EffectService;
 }
Example #2
0
        public static void SaveToJson(GameConfig config)
        {
            var json = JsonUtil.ToJson(config);

            File.WriteAllText(Application.dataPath + "/Resources/Config/GameConfig.json", json);
        }
Example #3
0
 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();
 }