private void SetHealthUI() { float currentHealth = _destructible.GetCurrentHealth(); float startingHealth = _destructible.health; healthSlider.value = _destructible.GetCurrentHealth() / startingHealth; fillImage.color = Color.Lerp(_zeroHealthColor, _fullHealthColor, currentHealth / startingHealth); }