// Start is called before the first frame update public void StartBattle(AnimalParty playerParty, Animal wildAnimal) { this.playerParty = playerParty; this.wildAnimal = wildAnimal; player = playerParty.GetComponent <PlayerController>(); isOutlawBattle = false; StartCoroutine(SetupBattle()); }
public void StartOutlawBattle(AnimalParty playerParty, AnimalParty outlawParty) { this.playerParty = playerParty; this.outlawParty = outlawParty; isOutlawBattle = true; player = playerParty.GetComponent <PlayerController>(); outlaw = outlawParty.GetComponent <OutlawController>(); StartCoroutine(SetupBattle()); }