Exemplo n.º 1
0
 public void startBattle(Pokemon wildPokemon)
 {
     if (t.pokemon[0] != null)
     {
         battleCanvas.startBattle(wildPokemon);
         FindObjectOfType <Movement>().setStasis(true);
         fadeScreen();
         inBattle   = true;
         iterations = 1;
         battleCanvas.setEnemy(wildPokemon);
     }
     else
     {
         print("You have no pokemon so you ran.");
     }
 }
Exemplo n.º 2
0
 public void swapPokemon()
 {
     if (currEnemyPokemon + 1 < pokemonList.Count)
     {
         currEnemyPokemon++;
         battleCanvas.setEnemy(pokemonList[currEnemyPokemon]);
     }
     else
     {
         if (nPC != null)
         {
             nPC.fullHealth();
         }
         battleCanvas.exitBattle();
     }
     canBattle = false;
 }