simple UI added

This commit is contained in:
Mausham
2025-12-11 18:20:42 -08:00
parent 60e58082ac
commit 2118bb7c36
576 changed files with 126744 additions and 13 deletions

View File

@@ -0,0 +1,28 @@
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class DeathScreenView : MonoBehaviour
{
public GameObject deathScreen;
public Button rePlayButton;
public Button backButton;
public TextMeshProUGUI highScoreText;
public TextMeshProUGUI currentScoreText;
private void Start()
{
deathScreen.SetActive(false);
}
public void Show(int score, int highscore)
{
highScoreText.text = highscore.ToString();
currentScoreText.text = score.ToString();
deathScreen.SetActive(true);
}
public void Hide()
{
deathScreen.SetActive(false);
}
}