您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

29 行
729 B

  1. using System;
  2. using CIG.Translation;
  3. using UnityEngine;
  4. public class ValueCounterDisplay : TweenHelper
  5. {
  6. public void PlayValueCounter(decimal startValue, decimal endValue)
  7. {
  8. this._currentDisplayingValue = startValue;
  9. base.TweenTo(this._currentDisplayingValue, endValue);
  10. }
  11. public void PlayValueCounter(decimal endValue)
  12. {
  13. this.PlayValueCounter(this._currentDisplayingValue, endValue);
  14. }
  15. protected override void UpdateValue(decimal value)
  16. {
  17. this._currentDisplayingValue = value;
  18. this._valueHoldingText.LocalizedString = Localization.Integer(this._currentDisplayingValue);
  19. }
  20. [SerializeField]
  21. private LocalizedText _valueHoldingText;
  22. private decimal _currentDisplayingValue;
  23. }