示例#1
0
    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();
        }
    }
示例#2
0
    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();
        }
    }
示例#3
0
    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));
    }
示例#4
0
 public void BagClick()
 {
     //from player menu to bag menu
     FightUIManager.BagClick();
 }
示例#5
0
 public void PokemonClick()
 {
     //from player menu to pokemon menu
     FightUIManager.PokemonClick();
 }