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

@@ -17,13 +17,13 @@ namespace Presenter {
this.gemView = gemView;
}
public void Tick() {
public void Tick(float gemSpeed) {
if (this.gemView == null) {
return;
}
if (!this.gem.Position.Compare(this.gemView.transform.localPosition)) {
this.gemView.UpdatePosition(this.gem.Position);
this.gemView.UpdatePosition(this.gem.Position, gemSpeed);
}
}
}

View File

@@ -15,8 +15,8 @@ namespace Presenter {
this.scoreView.SetScore(this.scoreService.Score);
}
public void Tick() {
this.scoreView.UpdateScore();
public void Tick(float scoreSpeed) {
this.scoreView.UpdateScore(scoreSpeed);
}
private void OnScoreChanged(int score) {