示例#1
0
 /// <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());
 }
示例#2
0
 /// <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());
 }
示例#3
0
    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());
    }