public void BattleStart(BattleT config) { this.curBattleInfo = config; // ModelResourceT PlayerResourceInfo = ModelResourceConfig.GetConfigByID(1); /* * this.mainPlayer = PlayerController.CreatePlayer(PlayerResourceInfo, this.curBattleInfo.PlayerBornPos, this.curBattleInfo.PlayerBornAngle, "MainPlayer"); * this.mainPlayer.InitAnimation();*/ }
public static BattleT GetConfigByID(int id) { BattleT config = ConfigManager.GetConfigByID <BattleT>(Configs, id); return(config); }
//切场景之前设置战斗配置 public static void SetBattleConfig(BattleT config) { curConfig = config; }