Canvas Win/Lose but not display
This commit is contained in:
parent
fd649c831c
commit
7568887a44
8 changed files with 1877 additions and 0 deletions
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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue