chore
parent
0051ced582
commit
b48f888558
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue