public void RunClick() { //remove player menu, cause the player will try to run away FightUIManager.RunClick(); GameManager.instance.LevelManager.StartMoving(); //TEMP refullo i pokemon del giocatore quando esco dal combattimento foreach (PokemonModel pokemon in GameManager.instance.Player.PlayerPokemons) { pokemon.Restore(); } }
public void BackButton() { //only if not paused if (Time.timeScale == 0) { return; } //only if player pokemon is alive (because pokemon menu is shown also when the player has to replace his dead pokemon) if (currentPlayerPokemon.CurrentHealth > 0) { //deactive other menu and active player menu FightUIManager.BackButton(); } }
public void FightClick() { //check if there is at least one skill with PP > 0 foreach (SkillModel skill in currentPlayerPokemon.CurrentSkills) { if (skill.CurrentPP > 0) { //if can fight (there is at least one skill with PP > 0) go from player menu to fight menu FightUIManager.FightClick(); return; } } //if every skill has PP 0 then use baseSkill UseSkill(new SkillModel(baseSkill)); }
public void BagClick() { //from player menu to bag menu FightUIManager.BagClick(); }
public void PokemonClick() { //from player menu to pokemon menu FightUIManager.PokemonClick(); }