Files
HelixJump/Assets/Scripts/UI/DeathScreenView.cs
2025-12-14 22:51:43 +05:45

25 lines
557 B
C#

using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class DeathScreenView : MonoBehaviour
{
[SerializeField] private GameObject deathScreen;
public Button restartBtn;
public Button exitBtn;
public TextMeshProUGUI score;
public TextMeshProUGUI highScore;
public void Show(int _score, int _highScore)
{
this.score.text = _score.ToString();
this.highScore.text = _highScore.ToString();
deathScreen.SetActive(true);
}
public void Hide()
{
deathScreen.SetActive(false);
}
}