private void LateUpdate() { long result; if (!long.TryParse(_text.text.SanitizeNumber(), out result)) { return; } _text.text = format.FormatAmount(result); }
private void Refresh() { _text.text = prefix + format.FormatAmount(Amount); }
public static void SetAmount(this Text text, string format, NumberFormats.Format numberType, long to) { text.text = string.Format(format, numberType.FormatAmount(to)); }