Beispiel #1
0
 public void UnlockAllLevelsConfirm()
 {
     SoundManager.PlaySound("MENUHOVER");
     unlockAllLevelsPanel.SetActive(false);
     levelPanel.gameObject.SetActive(true);
     UnlockAllLevelsButtonGameobject.SetActive(false);
     UnlockAllLevels();
 }
Beispiel #2
0
 public void CloseLevels()
 {
     SoundManager.PlaySound("MENUHOVER");
     menuPanel.gameObject.SetActive(true);
     levelPanel.gameObject.SetActive(false);
     UnlockAllLevelsButtonGameobject.SetActive(true);
     EventSystem.current.SetSelectedGameObject(null);
     EventSystem.current.SetSelectedGameObject(MenuFirstButton);
 }
Beispiel #3
0
    public void OpenLevels()
    {
        SoundManager.PlaySound("MENUHOVER");

        if (PlayerPrefs.GetInt("topLevel", 3) < 12)
        {
            UpdateLevels();
        }
        else
        {
            UnlockAllLevelsButtonGameobject.SetActive(false);
        }

        menuPanel.gameObject.SetActive(false);
        levelPanel.gameObject.SetActive(true);
        EventSystem.current.SetSelectedGameObject(null);
        EventSystem.current.SetSelectedGameObject(LevelBackButton);
    }