Ejemplo n.º 1
0
    public void ActivatePanel()
    {
        int level    = NextLevelTemp.getLevel.currentLevel;
        int maxLevel = NextLevelTemp.getLevel.maxLevels;

        Panel.gameObject.SetActive(true);

        if (level != maxLevel)
        {
            NextLevel.gameObject.SetActive(true);
        }
        else
        {
            NextLevel.gameObject.SetActive(false);
        }

        if (level != 0)
        {
            PrevLevel.SetActive(true);
        }
        else
        {
            PrevLevel.SetActive(false);
        }

        FirstLevel.SetActive(true);
    }