StellarXipher/Assets/Puzzles/Mines/Scripts/ControlMainMenuScript.cs
EthanPisani d479a27770
All checks were successful
Build project / Build for (StandaloneLinux64, 6000.0.37f1) (push) Successful in 5m17s
Build project / Build for (StandaloneWindows64, 6000.0.37f1) (push) Successful in 5m19s
Build project / Publish to itch.io (StandaloneLinux64) (push) Successful in 5s
Build project / Publish to itch.io (StandaloneWindows64) (push) Successful in 5s
add mines puzzle game to unlock doors
2025-03-16 12:08:54 -04:00

40 lines
1020 B
C#

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