public void TakeDamage(float damage) { currentHp -= damage; showDamageBh.ShowDamage(this, damage); hpBar.SetAmount(currentHp / maxHp); if (currentHp <= 0) { Die(); } }
public void TakeDamage(float damage) { currentHp -= damage; showDamageBh.ShowDamage(this, damage); hpBar.SetAmount(currentHp / maxHp); if (currentHp <= 0) { Die(); } }