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."); } }
public void swapPokemon() { if (currEnemyPokemon + 1 < pokemonList.Count) { currEnemyPokemon++; battleCanvas.setEnemy(pokemonList[currEnemyPokemon]); } else { if (nPC != null) { nPC.fullHealth(); } battleCanvas.exitBattle(); } canBattle = false; }