/// <summary> /// Starts a battle with a wild monster. /// </summary> /// <param name="playerParty">Player's party of monsters.</param> /// <param name="wildMonster">Copy of the wild monster generated from the MapLayer.</param> public void StartWildBattle(MonsterParty playerParty, MonsterObj wildMonster) { _playerParty = playerParty; _wildMonster = wildMonster; _isCharBattle = false; _player = playerParty.GetComponent <PlayerController>(); StartCoroutine(SetupBattle()); }
/// <summary> /// Starts a battle with an enemy character. /// </summary> /// <param name="playerParty">Player's party of monsters.</param> /// <param name="battlerParty">Battler's party of monsters.</param> public void StartCharBattle(MonsterParty playerParty, MonsterParty battlerParty) { _playerParty = playerParty; _battlerParty = battlerParty; _isCharBattle = true; _player = playerParty.GetComponent <PlayerController>(); _battler = battlerParty.GetComponent <BattlerController>(); StartCoroutine(SetupBattle()); }
public void StartTamerBattle(MonsterParty playerParty, MonsterParty enemyParty) { this.playerParty = playerParty; this.enemyTamerParty = enemyParty; isTamerBattle = true; playerController = playerParty.GetComponent <PlayerController>(); enemyTamerController = enemyParty.GetComponent <TamerController>(); StartCoroutine(SetupBattle()); }