Canvas Win/Lose but not display

This commit is contained in:
Kirabsol 2025-01-28 20:31:32 +01:00
parent fd649c831c
commit 7568887a44
8 changed files with 1877 additions and 0 deletions

View 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);
}
}