Main menu
This commit is contained in:
parent
a4876b4c5e
commit
231070af77
1208
Assets/Scenes/Main Menu.unity
Normal file
1208
Assets/Scenes/Main Menu.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Scenes/Main Menu.unity.meta
Normal file
7
Assets/Scenes/Main Menu.unity.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 68bb79cf26688ab46a0c4c582d1cb315
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
16
Assets/Scripts/MainMenuManager.cs
Normal file
16
Assets/Scripts/MainMenuManager.cs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
|
public class MainMenuManager : MonoBehaviour {
|
||||||
|
|
||||||
|
public void GoToScene(int sceneNb) {
|
||||||
|
SceneManager.LoadScene(sceneNb);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void QuitGame() {
|
||||||
|
Application.Quit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
11
Assets/Scripts/MainMenuManager.cs.meta
Normal file
11
Assets/Scripts/MainMenuManager.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8560765ad764680488938e0b0912b914
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Loading…
x
Reference in New Issue
Block a user