void UpdateHealth() { Vector3 newScale = new Vector3(healthComponent.GetFracton(), foreground.localScale.y, foreground.localScale.z); foreground.localScale = newScale; }