working
This commit is contained in:
parent
4e91f448c9
commit
1b2611e5a9
90 changed files with 7029 additions and 2762 deletions
26
Assets/Scripts/Transition.cs
Normal file
26
Assets/Scripts/Transition.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class Transition : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private WinCanvas _winCanvas;
|
||||
[SerializeField] private LoseUI _loseUI;
|
||||
[SerializeField] private GameUI _gameUI;
|
||||
|
||||
// Update is called once per frame
|
||||
void LateUpdate()
|
||||
{
|
||||
if (GlobalsVariable.QueenA == null)
|
||||
{
|
||||
_winCanvas.gameObject.SetActive(true);
|
||||
_gameUI.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
if (Input.GetKeyDown(KeyCode.Space))
|
||||
{
|
||||
print("YOU LOSE");
|
||||
_loseUI.gameObject.SetActive(true);
|
||||
_gameUI.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue