diff --git a/Assets/3rd/D2D_Scripts/Gameplay/Health/Health.cs b/Assets/3rd/D2D_Scripts/Gameplay/Health/Health.cs index 744deab6..95e7b975 100644 --- a/Assets/3rd/D2D_Scripts/Gameplay/Health/Health.cs +++ b/Assets/3rd/D2D_Scripts/Gameplay/Health/Health.cs @@ -166,7 +166,10 @@ namespace D2D.Gameplay private void InitiateDeathSequence() { Died?.Invoke(); - + if(!_isPlayer) + { + _enemySpawn.EnemyDeathAudio.Play(); + } if (_isGrayFadeout) { GrayFadeoutDeath(); diff --git a/Assets/ButtonSoundClick.cs b/Assets/ButtonSoundClick.cs new file mode 100644 index 00000000..1bdfa92f --- /dev/null +++ b/Assets/ButtonSoundClick.cs @@ -0,0 +1,29 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class ButtonSoundClick : MonoBehaviour +{ + public AudioSource audioSource; + public Button[] allButtons; + private void Start() + { + Starter(); + } + void Starter() + { + allButtons = FindObjectsOfType