public void UnlockAllLevelsConfirm() { SoundManager.PlaySound("MENUHOVER"); unlockAllLevelsPanel.SetActive(false); levelPanel.gameObject.SetActive(true); UnlockAllLevelsButtonGameobject.SetActive(false); UnlockAllLevels(); }
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); }
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); }