ProjetAMJV_CR/Assets/Scripts/UI/LoseUI.cs
Crizomb 97b9d94930 Revert "Merge branch 'Integration'"
This reverts commit 0727e44b80, reversing
changes made to 1fb3c9bfbe.
2025-01-29 07:31:05 +01:00

32 lines
654 B
C#

using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;
public class LoseUI : MonoBehaviour
{
[SerializeField] GameUI gameUI;
[SerializeField] TextMeshProUGUI time;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
time.text = gameUI.GetComponent<GameUI>().time.ToString();
}
// Update is called once per frame
void Update()
{
}
public void Retry()
{
SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().name);
}
public void MainMenu()
{
SceneManager.LoadSceneAsync(0);
}
}