1
0
Fork 0
This commit is contained in:
Unknown 2018-04-21 20:47:50 +02:00
parent 15e6166e5b
commit c604f6e4e6
5 changed files with 1256 additions and 19 deletions

File diff suppressed because it is too large Load diff

View file

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

16
Assets/Scripts/HP.cs Normal file
View 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
View file

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

View file

@ -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);
}
} }