diff --git a/assets/_Game/Scripts/UI/GameOverPanel.ts b/assets/_Game/Scripts/UI/GameOverPanel.ts index 12d392c..9cbd329 100644 --- a/assets/_Game/Scripts/UI/GameOverPanel.ts +++ b/assets/_Game/Scripts/UI/GameOverPanel.ts @@ -115,6 +115,7 @@ export class GameOverPanel extends Component { const target = this.yourScore.node.getWorldPosition(); let duration = 0; for (let i = 0; i < items; i++) { + if (this._clicked) return; score += x; duration = this._starSpeedCurve.evaluate(i / items - 1); score = score > totalScore ? totalScore : score; diff --git a/assets/_Game/Scripts/UI/TimeUI.ts b/assets/_Game/Scripts/UI/TimeUI.ts index ab40861..34f4543 100644 --- a/assets/_Game/Scripts/UI/TimeUI.ts +++ b/assets/_Game/Scripts/UI/TimeUI.ts @@ -39,6 +39,10 @@ export class TimeUI extends Component { this._timeLabel.string = this._gameTime.toString(); break; case GameState.Playing: + AudioManager.stopSfx(this._countDownSound); + Tween.stopAllByTarget(this._timeIcon); + this._fill.color = Color.GREEN; + this._timeLabel.color = Color.WHITE; break; case GameState.GameOver: AudioManager.stopSfx(this._countDownSound);