public void backToMainMenu() //go back to main menu from other menus { mainMenuObjects.SetActive(true); if (completionKeeper.howManyLevelsCompleted == 0) { startOrContinueText.GetComponent <TextMeshProUGUI>().text = "Start"; } levelSelectOptions.SetActive(false); optionsObjects.SetActive(false); backButton.SetActive(false); downButton.SetActive(false); currentMainMenuState = mainMenuState.main; }
public void changeToLevelSelect() // open level select menu { completionKeeper.RestoreDataFromPlayerPrefBackup(); mainMenuObjects.SetActive(false); levelSelectOptions.SetActive(true); for (int i = levelButtons.Count - 1; i > (completionKeeper.howManyLevelsCompleted); i--) { Debug.Log(i); levelButtons[i].GetComponent <Button>().interactable = false; } currentMainMenuState = mainMenuState.levelSelect; }
public void optionsOpen() //open the options menu { mainMenuObjects.SetActive(false); optionsObjects.SetActive(true); currentMainMenuState = mainMenuState.options; }
/* * public void goToEvaluation() * { * menuState = mainMenuState.evaluation; * } */ public void goToGraph() { menuState = mainMenuState.graph; }
// Use this for initialization void Start() { menuState = mainMenuState.graph; mainMenuEvaluation.SetActive(true); mainMenuGraph.SetActive(false); }