private void Explode() { _explosionBehaviour.Explode(); AudioManager.Instance.PlayAudioClip(_explosionAudio); _healthBehaviour.Kill(); }
private void DoWhenDead() { if (_takeOverBehaviour.TakenOver) { _takeOverBehaviour.ReturnToNormal(); } else { HealthBehaviour.Kill(); } }
public virtual void DoWhenDead() { _healthBehaviour.Kill(); _lootDropBehaviour.Drop(); RoomManager.SetEnemyCounterAsync(); if (_hitSound) { AudioManager.Instance.PlayAudioClip(_hitSound); } }