Ejemplo n.º 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);
        }
    }
Ejemplo n.º 2
0
 void Start()
 {
     Label.text = ScoreLabelBehavior.FormatScore(UserSession.LastScore);
 }