Beispiel #1
0
 private void Death()
 {
     // Handle death animation stuff here
     foreach (Collider col in GetComponents <Collider>())
     {
         col.enabled = false;
     }
     teamManager.RemoveDeadEnemy(gameObject);
     animator.AnimateDeath();
     teamManager.AwardExperience(experiencePoints);
     HideHealthBar();
     Destroy(gameObject, 3.0f);
 }