diff --git a/assets/Game/Scripts/SlotMsg.ts b/assets/Game/Scripts/SlotMsg.ts index 5d72973..84932f3 100644 --- a/assets/Game/Scripts/SlotMsg.ts +++ b/assets/Game/Scripts/SlotMsg.ts @@ -137,7 +137,7 @@ export class SlotMsg extends Component { let winCount = msg.getChildByName('winCount'); winCount.getComponent(Label).string = gold2cash(startScore); - // AudioManager.instance.playSFX('Gold_Up'); + AudioManager.instance.playSFX('Slot_Msg_Free_Total_Win'); UIManager.instance.tweenScorelinear(startScore, endScore, 2) .onUpdate((v: number) => { winCount.getComponent(Label).string = gold2cash(v); @@ -287,7 +287,11 @@ export class SlotMsg extends Component { let flyNode = instantiate(centerMulNode) flyNode.setPosition(centerMulNode.getPosition()) this.node.addChild(flyNode) + this.scheduleOnce(() => { + AudioManager.instance.playSFX('Multi_Fly_Start') + }, 0.1) await tweenToAsync(flyNode, centerLocalPos, 0.6); + AudioManager.instance.playSFX('Multi_Fly_End') flyNode.destroy() this.showRoundWinMsg(1, this.currTotaleMulti) } @@ -315,11 +319,15 @@ export class SlotMsg extends Component { info.multiNode.active = false; this.node.addChild(flyNode); flyNode.setPosition(sourceLocalPos); - AudioManager.instance.playSFX('Multi_Fly_Start') + this.scheduleOnce(() => { + AudioManager.instance.playSFX('Multi_Fly_Start') + }, 0.1) // 2.4 飞到信息栏动画 await tweenToAsync(flyNode, centerLocalPos, 0.6); - AudioManager.instance.playSFX('Multi_Fly_End') + this.scheduleOnce(() => { + AudioManager.instance.playSFX('Multi_Fly_End') + }, 0.1) flyNode.destroy(); // 2.5 累加倍率,信息栏文本根据每个倍率到达而改变 diff --git a/assets/Game/Scripts/TotalWinSpine.ts b/assets/Game/Scripts/TotalWinSpine.ts index d5613c8..0c76e91 100644 --- a/assets/Game/Scripts/TotalWinSpine.ts +++ b/assets/Game/Scripts/TotalWinSpine.ts @@ -45,13 +45,14 @@ export class TotalWinSpine extends Component { .to(0.5, { scale: new Vec3(1, 1, 1) }, { easing: 'bounceOut' }) .start(); - this.labelController = UIManager.instance.tweenScorelinear(0, totalWinCount, 3) + this.labelController = UIManager.instance.tweenScorelinear(0, totalWinCount, 3.3) .onUpdate((v: number) => { this.totalWinCount.getComponent(Label).string = gold2cash(v); }) .onComplete(() => { this.collectBtn.active = true; - AudioManager.instance.playBGM('Total_Win_Jump'); + AudioManager.instance.stopBGM() + AudioManager.instance.playSFX('Total_Win_Jump'); this.totalWinCount.getComponent(Label).string = gold2cash(totalWinCount); this.scheduleOnce(() => { this.onClickCollectBtn(); @@ -61,11 +62,16 @@ export class TotalWinSpine extends Component { } onClickGrayBg() { - AudioManager.instance.playBGM('Total_Win_Jump'); + AudioManager.instance.stopBGM() + + AudioManager.instance.playSFX('Total_Win_Jump'); this.node.getChildByName('grayBg').off(Node.EventType.TOUCH_START, this.onClickGrayBg, this); Tween.stopAllByTarget(this.labelController.holder); this.collectBtn.active = true; this.totalWinCount.getComponent(Label).string = gold2cash(this.totalWinCountValue); + this.scheduleOnce(() => { + this.onClickCollectBtn(); + }, 3); } onClickCollectBtn() { diff --git a/assets/resources/audio/Slot_Msg_Free_Total_Win.mp3 b/assets/resources/audio/Slot_Msg_Free_Total_Win.mp3 new file mode 100644 index 0000000..76b9463 Binary files /dev/null and b/assets/resources/audio/Slot_Msg_Free_Total_Win.mp3 differ diff --git a/assets/resources/audio/Slot_Msg_Free_Total_Win.mp3.meta b/assets/resources/audio/Slot_Msg_Free_Total_Win.mp3.meta new file mode 100644 index 0000000..c76fc43 --- /dev/null +++ b/assets/resources/audio/Slot_Msg_Free_Total_Win.mp3.meta @@ -0,0 +1,14 @@ +{ + "ver": "1.0.0", + "importer": "audio-clip", + "imported": true, + "uuid": "aa014762-8aca-468b-b288-8f2d014f3426", + "files": [ + ".json", + ".mp3" + ], + "subMetas": {}, + "userData": { + "downloadMode": 0 + } +}