feature/ads-smart-display
tiendat3699 2024-06-18 15:53:46 +07:00
parent 0051ced582
commit b48f888558
2 changed files with 5 additions and 0 deletions

View File

@ -115,6 +115,7 @@ export class GameOverPanel extends Component {
const target = this.yourScore.node.getWorldPosition(); const target = this.yourScore.node.getWorldPosition();
let duration = 0; let duration = 0;
for (let i = 0; i < items; i++) { for (let i = 0; i < items; i++) {
if (this._clicked) return;
score += x; score += x;
duration = this._starSpeedCurve.evaluate(i / items - 1); duration = this._starSpeedCurve.evaluate(i / items - 1);
score = score > totalScore ? totalScore : score; score = score > totalScore ? totalScore : score;

View File

@ -39,6 +39,10 @@ export class TimeUI extends Component {
this._timeLabel.string = this._gameTime.toString(); this._timeLabel.string = this._gameTime.toString();
break; break;
case GameState.Playing: case GameState.Playing:
AudioManager.stopSfx(this._countDownSound);
Tween.stopAllByTarget(this._timeIcon);
this._fill.color = Color.GREEN;
this._timeLabel.color = Color.WHITE;
break; break;
case GameState.GameOver: case GameState.GameOver:
AudioManager.stopSfx(this._countDownSound); AudioManager.stopSfx(this._countDownSound);