This commit is contained in:
Nimesh 2023-02-01 23:17:50 +05:30
parent a9d6090b7f
commit 49fa11b888
2 changed files with 3 additions and 0 deletions

View File

@ -2904,6 +2904,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 79013961d903f3342ae828fd0ead5728, type: 3}
m_Name:
m_EditorClassIdentifier:
gameoversfx: {fileID: 810370124}
deathPanel: {fileID: 2047832626}
--- !u!1 &2047832626
GameObject:

View File

@ -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();
}