void Update() { float newSliderValue = (float)_shipHitpoints.GetCurrentHitpoints() / 100; _slider.value = newSliderValue; }
void Start() { _text.text = preText + " " + _shipHitpoints.GetCurrentHitpoints() + "/" + _shipHitpoints.GetMaximumHitpoints(); }