using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; /// /// Controll class for the main menu view. It's pretty barebones /// public class ControlMainMenuScript : MonoBehaviour { ///// ///// Executes before all Start methods are called. This makes sure it doesn't get destroyed. ///// //void Awake() { // DontDestroyOnLoad(this); //} #region Events /// /// Action is executed when the user presses the Start button /// public void OnStartButtonClick() { SceneManager.LoadScene("PlayScene"); } /// /// Action is executed when the user presses the Options button /// public void OnOptionsButtonClick() { //TODO: add options } /// /// Action is executed when te user presses the Quit button /// public void OnQuitButtonClick() { Application.Quit(); } #endregion }