sfx2
This commit is contained in:
@@ -6,6 +6,7 @@ using UnityEngine.SceneManagement;
|
||||
public class GameUI : MonoBehaviour
|
||||
{
|
||||
public static GameUI instance;
|
||||
public AudioSource gameoversfx;
|
||||
|
||||
|
||||
[SerializeField]private GameObject deathPanel;
|
||||
@@ -21,6 +22,7 @@ public class GameUI : MonoBehaviour
|
||||
|
||||
void showDeath(){
|
||||
deathPanel.SetActive(true);
|
||||
gameoversfx.Play();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user