25 lines
557 B
C#
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);
|
|
}
|
|
|
|
}
|