示例#1
0
 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;
 }
示例#2
0
    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;
    }
示例#3
0
 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);
 }