Cleanup
This commit is contained in:
@@ -12,8 +12,8 @@ namespace Views {
|
||||
this.scoreText = GetComponentInChildren<TextMeshProUGUI>();
|
||||
}
|
||||
|
||||
public void UpdateScore() {
|
||||
this.displayScore = Mathf.Lerp(this.displayScore, this.actualScore, 5 * Time.deltaTime);
|
||||
public void UpdateScore(float scoreSpeed) {
|
||||
this.displayScore = Mathf.Lerp(this.displayScore, this.actualScore, scoreSpeed * Time.deltaTime);
|
||||
this.scoreText.text = this.displayScore.ToString("0");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user