public void ConfirmSelection(int optionNum) { if (optionNum == 0) //New Game { // Set up first character for New game. charStats.CreateCharacterStats("Player", 0, 1, 70, 35, 15, 10, 5, 20); charStats.SetTileOccupied("Player", 0, new Vector2(1, 1), 8); transition.FadeToSceneChange(false, NewGameSceneID); } else if (optionNum == 1) { selectionImageGroup.SetActive(false); optionsPanel.SetActive(false); loadGamePanel.SetActive(true); state = TitleState.Load; } else if (optionNum == 2) { selectionImageGroup.SetActive(false); optionsPanel.SetActive(true); loadGamePanel.SetActive(false); UpdateVideoSettingsText(); state = TitleState.Options; } else if (optionNum == 3) { Application.Quit(); } }
public void GoToTitle() { //Debug.Log("Commencing GoToTitle"); transition.FadeToSceneChange(false, 1); //Fade to black to title screen. gameObject.SetActive(false); }