Canvas Win/Lose but not display
This commit is contained in:
parent
fd649c831c
commit
7568887a44
8 changed files with 1877 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class LoseUI : MonoBehaviour
|
||||
{
|
||||
|
@ -18,4 +19,14 @@ public class LoseUI : MonoBehaviour
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public void Retry()
|
||||
{
|
||||
SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().name);
|
||||
}
|
||||
|
||||
public void MainMenu()
|
||||
{
|
||||
SceneManager.LoadSceneAsync(0);
|
||||
}
|
||||
}
|
||||
|
|
22
Assets/Scripts/WinCanvas.cs
Normal file
22
Assets/Scripts/WinCanvas.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class WinCanvas : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void NextLevel()
|
||||
{
|
||||
SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().buildIndex + 1);
|
||||
}
|
||||
}
|
2
Assets/Scripts/WinCanvas.cs.meta
Normal file
2
Assets/Scripts/WinCanvas.cs.meta
Normal file
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 77dd5b557ccc843469e1ecb32d50884e
|
Loading…
Add table
Add a link
Reference in a new issue