added sounds

This commit is contained in:
Mausham
2025-12-14 22:51:43 +05:45
parent 94e8eba3b1
commit 0ea929bd20
30 changed files with 6756 additions and 882 deletions

View File

@@ -0,0 +1,24 @@
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);
}
}