Added Main menu

* Play Button
* Settings Button
* Quit Button
This commit is contained in:
d-hain 2022-07-04 21:18:26 +02:00
parent 424b70e950
commit d65db7ee5f
8 changed files with 2448 additions and 11 deletions

View file

@ -0,0 +1,19 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 54d21f6ece3b46479f0c328f8c6007e0, type: 3}
m_Name: Gold Color Gradient
m_EditorClassIdentifier:
colorMode: 2
topLeft: {r: 1, g: 0.78039217, b: 0.34117648, a: 1}
topRight: {r: 1, g: 0.78039217, b: 0.34117648, a: 1}
bottomLeft: {r: 1, g: 0.6117647, b: 0.19215687, a: 1}
bottomRight: {r: 1, g: 0.6117647, b: 0.19215687, a: 1}

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cf0814ddcf4a47340b48e7eaaf4c75d2
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

2355
Assets/Scenes/Menu.unity Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: bec73363f82d9b4409e2886f42166701
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View 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();
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 445a1513e9a0b294f9540207490e3264
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View file

@ -6,8 +6,11 @@ EditorBuildSettings:
serializedVersion: 2
m_Scenes:
- enabled: 0
path: Assets/Scenes/SampleScene.unity
guid: 2cda990e2423bbf4892e6590ba056729
path:
guid: 00000000000000000000000000000000
- enabled: 1
path: Assets/Scenes/Menu.unity
guid: bec73363f82d9b4409e2886f42166701
- enabled: 1
path: Assets/Scenes/MainScene.unity
guid: ab81043a5c6339744b018928ec5e523d