コード例 #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.");
     }
 }
コード例 #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;
 }