Beispiel #1
0
 public virtual void TakeDamage(double amount)
 {
     if (attackTimer == 0)
     {
         Sounds.GetEnemyHurtSound().Play();
         attackTimer    = TakeDamageCooldown;
         currentHearts -= amount;
     }
 }