Start of WiN/LOSE UI
finishing later today
This commit is contained in:
parent
e51417a4e5
commit
33d88bdfa7
8 changed files with 221 additions and 111 deletions
|
@ -9,6 +9,12 @@ public class GameManager : MonoBehaviourSingletonPersistent<GameManager>
|
|||
[SerializeField] private List<string> levelNames;
|
||||
|
||||
int current_level = 0;
|
||||
|
||||
[SerializeField] GameObject GameUI;
|
||||
[SerializeField] GameObject LoseUI;
|
||||
[SerializeField] GameObject WinUI;
|
||||
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
@ -48,4 +54,11 @@ public class GameManager : MonoBehaviourSingletonPersistent<GameManager>
|
|||
|
||||
}
|
||||
|
||||
public void Losing()
|
||||
{
|
||||
|
||||
LoseUI.SetActive(true);
|
||||
this.enabled = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue