1
This commit is contained in:
parent
5de21fe1e6
commit
33e89688db
@ -754,7 +754,7 @@ export class SlotGame extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
showReadyHand(rollerId?: number) {
|
async showReadyHand(rollerId?: number) {
|
||||||
if (this.rollerManager.getIsManualStop() || this.rollerManager.getIsFastSpin()) return;
|
if (this.rollerManager.getIsManualStop() || this.rollerManager.getIsFastSpin()) return;
|
||||||
this.readyHand.active = true;
|
this.readyHand.active = true;
|
||||||
this.readyHand.getChildByName('readyHand').active = true;
|
this.readyHand.getChildByName('readyHand').active = true;
|
||||||
@ -773,7 +773,10 @@ export class SlotGame extends Component {
|
|||||||
})
|
})
|
||||||
if (rollerId == 0 || rollerId) {
|
if (rollerId == 0 || rollerId) {
|
||||||
if (rollerId != -1) {
|
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@ export class TotalWin extends Component {
|
|||||||
scoreLabel: Label | null = null; // 分数节点
|
scoreLabel: Label | null = null; // 分数节点
|
||||||
winScore: number = 0; // 最终赢分
|
winScore: number = 0; // 最终赢分
|
||||||
currentScore: number = 0; // 当前赢分
|
currentScore: number = 0; // 当前赢分
|
||||||
scrollTime: number = 5;
|
scrollTime: number = 3.6;
|
||||||
isScrolling: boolean = true; // 分数是否在滚动
|
isScrolling: boolean = true; // 分数是否在滚动
|
||||||
|
|
||||||
// 添加一个标记来区分是否是点击跳过
|
// 添加一个标记来区分是否是点击跳过
|
||||||
@ -91,6 +91,7 @@ export class TotalWin extends Component {
|
|||||||
this.unschedule(updateScore);
|
this.unschedule(updateScore);
|
||||||
this.isScrolling = false
|
this.isScrolling = false
|
||||||
this.btn.node.active = true
|
this.btn.node.active = true
|
||||||
|
AudioManager.instance.playSFX('Total_Settle_Sound_End');
|
||||||
}
|
}
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
||||||
@ -118,7 +119,8 @@ export class TotalWin extends Component {
|
|||||||
// 直接设置为最终分数
|
// 直接设置为最终分数
|
||||||
this.currentScore = this.winScore;
|
this.currentScore = this.winScore;
|
||||||
this.updateScoreLabel();
|
this.updateScoreLabel();
|
||||||
|
AudioManager.instance.stopAllSFX()
|
||||||
|
AudioManager.instance.playSFX('Total_Settle_Sound_End');
|
||||||
this.btn.node.active = true
|
this.btn.node.active = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -141,8 +143,6 @@ export class TotalWin extends Component {
|
|||||||
// 加入回调
|
// 加入回调
|
||||||
onClose() {
|
onClose() {
|
||||||
this.btn.node.off(Button.EventType.CLICK, this.onClose, this);
|
this.btn.node.off(Button.EventType.CLICK, this.onClose, this);
|
||||||
AudioManager.instance.playSFX('Total_Settle_Sound_End');
|
|
||||||
|
|
||||||
this.btn.node.active = false;
|
this.btn.node.active = false;
|
||||||
this.unscheduleAllCallbacks();
|
this.unscheduleAllCallbacks();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user