Beispiel #1
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);
 }