public void ReceiveDamage(float amount /*, Vector3 hitPoint*/) // hitPoint will be available later { if (amount > 0) { health.ChangeAmount(-amount); //healthSlider.value = health.CurrentValue; //or anyother life bar } controller.ManageHit(); }
public void ReceiveDamage(float amount) // DamageCounter { if (amount > 0) { health.ChangeAmount(-amount); healthSlider.value = health.CurrentValue; } player.ManageHit(); }