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);
 }
Exemple #3
0
 public static void SetAmount(this Text text, string format, NumberFormats.Format numberType, long to)
 {
     text.text = string.Format(format, numberType.FormatAmount(to));
 }