sfx2
This commit is contained in:
parent
a9d6090b7f
commit
49fa11b888
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user