Esempio n. 1
0
 private void SetupMain()
 {
     _resume = SetupButton(_layoutGroups[IndexMain].transform, "Resume", CloseMainMenu);
     SetupButton(_layoutGroups[IndexMain].transform, "New Game", OpenPartyManagement);
     SetupButton(_layoutGroups[IndexMain].transform, "Options", OpenOptionsMenu);
     _save = SetupButton(_layoutGroups[IndexMain].transform, "Save", OpenSave);
     SetupButton(_layoutGroups[IndexMain].transform, "Load", OpenLoad);
     SetupButton(_layoutGroups[IndexMain].transform, "Instructions", OpenInstructions);
     SetupButton(_layoutGroups[IndexMain].transform, "Level Editor", i => SceneManager.LoadSceneAsync(_editorScene, LoadSceneMode.Single));
     //SetupButton(_layoutGroups[IndexMain].transform, "Top Scores", OpenScores);
     SetupButton(_layoutGroups[IndexMain].transform, "Quit", CheckQuit);
     _resume.gameObject.SetActive(false);
     _save.gameObject.SetActive(false);
 }