public void Damage(float amount) { currentHealth -= amount; if (anim != null) { anim.isHit(); } if (currentHealth <= 0) { death(); } }
public void Damage(float amount) { currentHealth -= amount; if (anim != null) { anim.isHit(); } if (currentHealth <= 0) { death(); } }