public void StartBattle(CreatureTeam playerteam, Creature wildCreature) { //wierd use of the same name just to make it work in script this.playerteam = playerteam; this.wildCreature = wildCreature; isTrainerBattle = false; StartCoroutine(SetUpBattle()); }
public void StartTrainerBattle(CreatureTeam playerteam, CreatureTeam trainerTeam) { //wierd use of the same name just to make it work in script this.playerteam = playerteam; this.trainerteam = trainerTeam; ////for trainer battle, bug fix to false isTrainerBattle = true; //player = playerteam.GetComponent<PlayerController3D>(); player = playerteam.GetComponent <PlayerController360>(); trainer = trainerteam.GetComponent <TrainerController>(); StartCoroutine(SetUpBattle()); }