Пример #1
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();
        }
    }