Ejemplo n.º 1
0
 public void MakeDamage(float damage)
 {
     CurrentHealth = Mathf.Max(0, CurrentHealth - damage);
     RefreshView();
     particles.Play(CurrentHealth == 0);
     if (Owner as EnemyCreature != null)
     {
         Owner.Speed.Stagger();
     }
 }