public void DealDamage(float damage) { health -= damage; display.SetValue(health / MaxHP); if (health <= 0) { Death(); } }