Some UI
This commit is contained in:
parent
15e6166e5b
commit
c604f6e4e6
5 changed files with 1256 additions and 19 deletions
1198
Assets/Scenes/PauseMenu.unity
Normal file
1198
Assets/Scenes/PauseMenu.unity
Normal file
File diff suppressed because it is too large
Load diff
7
Assets/Scenes/PauseMenu.unity.meta
Normal file
7
Assets/Scenes/PauseMenu.unity.meta
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 725a7817080ad664382338d561570898
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
16
Assets/Scripts/HP.cs
Normal file
16
Assets/Scripts/HP.cs
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class HP : MonoBehaviour {
|
||||||
|
|
||||||
|
// Use this for initialization
|
||||||
|
void Start () {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update () {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Scripts/HP.cs.meta
Normal file
11
Assets/Scripts/HP.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 605b34431fb4e20408494377178f8ecb
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -3,30 +3,35 @@ using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class UIController : MonoBehaviour {
|
public class UIController : MonoBehaviour {
|
||||||
|
|
||||||
// Use this for initialization
|
|
||||||
void Start () {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
void Update () {
|
|
||||||
|
|
||||||
}
|
|
||||||
public static UIController instance;
|
|
||||||
|
|
||||||
private GameObject score;
|
|
||||||
private GameObject pauseMenu;
|
|
||||||
private GameObject GameOverPanel;
|
|
||||||
|
|
||||||
public UIController()
|
public UIController()
|
||||||
{
|
{
|
||||||
UIController.instance = this;
|
UIController.instance = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private GameObject score;
|
||||||
|
private GameObject pauseMenu;
|
||||||
|
private GameObject GameOverPanel;
|
||||||
|
// Use this for initialization
|
||||||
|
void Start () {
|
||||||
|
}
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update () {
|
||||||
|
}
|
||||||
|
public static UIController instance;
|
||||||
|
|
||||||
public void quitGame()
|
public void quitGame()
|
||||||
{
|
{
|
||||||
Application.Quit();
|
Application.Quit();
|
||||||
}
|
}
|
||||||
|
public void ShowPauseMenu()
|
||||||
|
{
|
||||||
|
pauseMenu.SetActive(true);
|
||||||
|
}
|
||||||
|
public void ClosePauseMenu()
|
||||||
|
{
|
||||||
|
pauseMenu.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue