basic sounds and music
This commit is contained in:
1 parent
8219685d00
commit
3938d93241
16 files changed
+389
No files matched your search
@@ -16,6 +16,7 @@ namespace Code.UI
|
||||
[SerializeField] private TMP_Text deathText;
|
||||
[SerializeField] private Button exitButton;
|
||||
[SerializeField] private PlayerHealth playerHealth;
|
||||
[SerializeField] private AudioSource audioSource;
|
||||
|
||||
private IInputService _inputService;
|
||||
|
||||
@@ -34,6 +35,8 @@ namespace Code.UI
|
||||
|
||||
private void HandleDeath()
|
||||
{
|
||||
var clip = Resources.Load<AudioClip>("Audio/SFX/DeathSFX");
|
||||
audioSource.PlayOneShot(clip);
|
||||
_inputService.DisableMap(ActionMapping.Gameplay);
|
||||
deathScreen.gameObject.SetActive(true);
|
||||
|
||||
|
||||
Reference in new issue
Block a user