Пример #1
0
 public void GhostIsDead()
 {
     _soundManager.DeathSound();
     _particleManager.DeathParticleEffect(transform.position);
     _ghostIsAlive = false;
     GhostMovesToFinalRoom();
     _ghostSpawnerFinalRoom.GetComponent <GhostSpawner>().GhostNeedsRespawn(_ghostId);
 }
Пример #2
0
 private void EnemyDies()
 {
     _soundManager.DeathSound();
     _particleManager.DeathParticleEffect(transform.position);
     Destroy(gameObject);
 }