Added Main menu
* Play Button * Settings Button * Quit Button
This commit is contained in:
parent
424b70e950
commit
d65db7ee5f
8 changed files with 2448 additions and 11 deletions
20
Assets/Scripts/MainMenu.cs
Normal file
20
Assets/Scripts/MainMenu.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/MainMenu.cs.meta
Normal file
11
Assets/Scripts/MainMenu.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 445a1513e9a0b294f9540207490e3264
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue