Exemplo n.º 1
0
 private void NewGame()
 {
     confirmPanel.SetActive(false);
     cScript.ReturnToMainMenu();
     cScript.mainMenu.GetComponent <Main_Menu_Script>().NewGame();
     cScript.PlaySound(Control_Script.audioThing.SELECT);
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     cScript = Control_Script.controlObj.GetComponent <Control_Script>();
     quitButton.onClick.AddListener(() => cScript.QuitGame());
     mainMenuButton.onClick.AddListener(() => cScript.ReturnToMainMenu());
     newGameButton.onClick.AddListener(() => ActivateConfirmationWindow());
     confirmButton.onClick.AddListener(() => NewGame());
     noButton.onClick.AddListener(() => GoToMain());
     mtButtonMenu.onClick.AddListener(() => cScript.MTBUTTON());
     toMainButton.onClick.AddListener(() => GoToMain());
     gameObject.SetActive(false);
 }