Foerming/Assets/Scripts/MainMenu.cs
d-hain d65db7ee5f Added Main menu
* Play Button
* Settings Button
* Quit Button
2022-07-04 21:18:26 +02:00

20 lines
No EOL
368 B
C#

using UnityEngine;
using UnityEngine.SceneManagement;
public class MainMenu : MonoBehaviour {
/**
* Play the game
* (Load the MainScene)
*/
public void PlayGame() {
SceneManager.LoadScene("MainScene");
}
/**
* Quit the Application appropriately
*/
public void QuitGame() {
Application.Quit();
}
}