Start of WiN/LOSE UI

finishing later today
This commit is contained in:
Kirabsol 2025-01-28 13:20:29 +01:00
parent e51417a4e5
commit 33d88bdfa7
8 changed files with 221 additions and 111 deletions

View file

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