Exemple #1
0
    private void Explode()
    {
        _explosionBehaviour.Explode();

        AudioManager.Instance.PlayAudioClip(_explosionAudio);

        _healthBehaviour.Kill();
    }
Exemple #2
0
 private void DoWhenDead()
 {
     if (_takeOverBehaviour.TakenOver)
     {
         _takeOverBehaviour.ReturnToNormal();
     }
     else
     {
         HealthBehaviour.Kill();
     }
 }
Exemple #3
0
    public virtual void DoWhenDead()
    {
        _healthBehaviour.Kill();
        _lootDropBehaviour.Drop();
        RoomManager.SetEnemyCounterAsync();

        if (_hitSound)
        {
            AudioManager.Instance.PlayAudioClip(_hitSound);
        }
    }