Example #1
0
    void Update()
    {
        if (_currentScore < _score)
        {
            _currentScore += (_score - _currentScore) * Time.deltaTime * 2f;
            if (_currentScore >= _score - 0.4f)
            {
                _currentScore = _score;
            }

            Label.text = ScoreLabelBehavior.FormatScore(_currentScore);
        }
    }
Example #2
0
 void Start()
 {
     Label.text = ScoreLabelBehavior.FormatScore(UserSession.LastScore);
 }