/// <summary> /// Updates the Text with the progress value /// </summary> /// <param name="newValue"></param> public virtual void SetProgress(float newValue) { float remappedValue = MMMaths.Remap(newValue, 0f, 1f, RemapMin, RemapMax); float displayValue = MMMaths.RoundToDecimal(remappedValue, NumberOfDecimals); _text.text = displayValue.ToString(CultureInfo.InvariantCulture); }