From 061af3f7b16f9fe91e04db38d011a6a9a77de19d Mon Sep 17 00:00:00 2001 From: TJH Date: Thu, 25 Dec 2025 15:02:26 +0800 Subject: [PATCH] 1 --- assets/Game/scripts/SlotGame.ts | 7 +++++-- assets/Game/scripts/game/TotalWin.ts | 8 ++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/assets/Game/scripts/SlotGame.ts b/assets/Game/scripts/SlotGame.ts index a0b1c25..00ec9c0 100644 --- a/assets/Game/scripts/SlotGame.ts +++ b/assets/Game/scripts/SlotGame.ts @@ -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() } } } diff --git a/assets/Game/scripts/game/TotalWin.ts b/assets/Game/scripts/game/TotalWin.ts index a6ecce3..7f3655d 100644 --- a/assets/Game/scripts/game/TotalWin.ts +++ b/assets/Game/scripts/game/TotalWin.ts @@ -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();