Add main menu, loding screen and loding logic
This commit is contained in:
parent
0c71d06fb8
commit
2ffb285e0b
15 changed files with 3176 additions and 525 deletions
8
Assets/Scripts/UI/MainMenu.meta
Normal file
8
Assets/Scripts/UI/MainMenu.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 59b7078030cbddb47baaea404501078c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
26
Assets/Scripts/UI/MainMenu/MainMenuUI.cs
Normal file
26
Assets/Scripts/UI/MainMenu/MainMenuUI.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class MainMenuUI : MonoBehaviour
|
||||
{
|
||||
|
||||
[SerializeField] private Button playButton;
|
||||
[SerializeField] private Button quitButton;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
playButton.onClick.AddListener(() =>
|
||||
{
|
||||
Loader.Load(Loader.Scene.GaneScene);
|
||||
});
|
||||
|
||||
quitButton.onClick.AddListener(() =>
|
||||
{
|
||||
Application.Quit();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
11
Assets/Scripts/UI/MainMenu/MainMenuUI.cs.meta
Normal file
11
Assets/Scripts/UI/MainMenu/MainMenuUI.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b1723c8b0762f894bb8b90e418526980
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in a new issue