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

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

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

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 77dd5b557ccc843469e1ecb32d50884e