This commit is contained in:
2025-12-15 03:44:53 +08:00
parent 25a5950e8d
commit 2a3bcf7423
12 changed files with 326 additions and 107 deletions

View File

@@ -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");
}