1
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m11s

This commit is contained in:
TJH 2025-12-25 15:02:26 +08:00
parent 5de21fe1e6
commit 061af3f7b1
2 changed files with 9 additions and 6 deletions

View File

@ -754,7 +754,7 @@ export class SlotGame extends Component {
}
}
showReadyHand(rollerId?: number) {
async showReadyHand(rollerId?: number) {
if (this.rollerManager.getIsManualStop() || this.rollerManager.getIsFastSpin()) return;
this.readyHand.active = true;
this.readyHand.getChildByName('readyHand').active = true;
@ -773,7 +773,10 @@ export class SlotGame extends Component {
})
if (rollerId == 0 || rollerId) {
if (rollerId != -1) {
AudioManager.instance.playSFX('Appear_Scatter_Sound_Final');
await AudioManager.instance.stopAllSFX()
AudioManager.instance.playSFX('Appear_Scatter_Sound_Final', 1, false);
} else {
AudioManager.instance.stopAllSFX()
}
}
}

View File

@ -18,7 +18,7 @@ export class TotalWin extends Component {
scoreLabel: Label | null = null; // 分数节点
winScore: number = 0; // 最终赢分
currentScore: number = 0; // 当前赢分
scrollTime: number = 5;
scrollTime: number = 3.6;
isScrolling: boolean = true; // 分数是否在滚动
// 添加一个标记来区分是否是点击跳过
@ -91,6 +91,7 @@ export class TotalWin extends Component {
this.unschedule(updateScore);
this.isScrolling = false
this.btn.node.active = true
AudioManager.instance.playSFX('Total_Settle_Sound_End');
}
}.bind(this);
@ -118,7 +119,8 @@ export class TotalWin extends Component {
// 直接设置为最终分数
this.currentScore = this.winScore;
this.updateScoreLabel();
AudioManager.instance.stopAllSFX()
AudioManager.instance.playSFX('Total_Settle_Sound_End');
this.btn.node.active = true
}
}
@ -141,8 +143,6 @@ export class TotalWin extends Component {
// 加入回调
onClose() {
this.btn.node.off(Button.EventType.CLICK, this.onClose, this);
AudioManager.instance.playSFX('Total_Settle_Sound_End');
this.btn.node.active = false;
this.unscheduleAllCallbacks();