completed sounds
This commit is contained in:
1 parent
3938d93241
commit
be3defc280
12 files changed
+1084
-22
No files matched your search
@@ -16,13 +16,18 @@ namespace Code.Gameplay.Enemies
|
||||
[SerializeField] private float _blinkDuration = 0.2f;
|
||||
[SerializeField] private Color _hitColor = Color.red;
|
||||
|
||||
[SerializeField] private AudioSource _audioSource;
|
||||
|
||||
private Color _originalColor;
|
||||
|
||||
private Vector3 _startPosition;
|
||||
private bool _facingRight = true;
|
||||
|
||||
private AudioClip _deathClip;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_deathClip = Resources.Load<AudioClip>("Audio/SFX/BirdDeathSFX");
|
||||
_startPosition = transform.position;
|
||||
}
|
||||
|
||||
@@ -93,6 +98,7 @@ namespace Code.Gameplay.Enemies
|
||||
|
||||
private void Die()
|
||||
{
|
||||
_audioSource.PlayOneShot(_deathClip);
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user