音效调整
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m19s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m19s
This commit is contained in:
parent
4835513aa6
commit
ebc8abe755
@ -137,7 +137,7 @@ export class SlotMsg extends Component {
|
|||||||
let winCount = msg.getChildByName('winCount');
|
let winCount = msg.getChildByName('winCount');
|
||||||
winCount.getComponent(Label).string = gold2cash(startScore);
|
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)
|
UIManager.instance.tweenScorelinear(startScore, endScore, 2)
|
||||||
.onUpdate((v: number) => {
|
.onUpdate((v: number) => {
|
||||||
winCount.getComponent(Label).string = gold2cash(v);
|
winCount.getComponent(Label).string = gold2cash(v);
|
||||||
@ -287,7 +287,11 @@ export class SlotMsg extends Component {
|
|||||||
let flyNode = instantiate(centerMulNode)
|
let flyNode = instantiate(centerMulNode)
|
||||||
flyNode.setPosition(centerMulNode.getPosition())
|
flyNode.setPosition(centerMulNode.getPosition())
|
||||||
this.node.addChild(flyNode)
|
this.node.addChild(flyNode)
|
||||||
|
this.scheduleOnce(() => {
|
||||||
|
AudioManager.instance.playSFX('Multi_Fly_Start')
|
||||||
|
}, 0.1)
|
||||||
await tweenToAsync(flyNode, centerLocalPos, 0.6);
|
await tweenToAsync(flyNode, centerLocalPos, 0.6);
|
||||||
|
AudioManager.instance.playSFX('Multi_Fly_End')
|
||||||
flyNode.destroy()
|
flyNode.destroy()
|
||||||
this.showRoundWinMsg(1, this.currTotaleMulti)
|
this.showRoundWinMsg(1, this.currTotaleMulti)
|
||||||
}
|
}
|
||||||
@ -315,11 +319,15 @@ export class SlotMsg extends Component {
|
|||||||
info.multiNode.active = false;
|
info.multiNode.active = false;
|
||||||
this.node.addChild(flyNode);
|
this.node.addChild(flyNode);
|
||||||
flyNode.setPosition(sourceLocalPos);
|
flyNode.setPosition(sourceLocalPos);
|
||||||
AudioManager.instance.playSFX('Multi_Fly_Start')
|
this.scheduleOnce(() => {
|
||||||
|
AudioManager.instance.playSFX('Multi_Fly_Start')
|
||||||
|
}, 0.1)
|
||||||
|
|
||||||
// 2.4 飞到信息栏动画
|
// 2.4 飞到信息栏动画
|
||||||
await tweenToAsync(flyNode, centerLocalPos, 0.6);
|
await tweenToAsync(flyNode, centerLocalPos, 0.6);
|
||||||
AudioManager.instance.playSFX('Multi_Fly_End')
|
this.scheduleOnce(() => {
|
||||||
|
AudioManager.instance.playSFX('Multi_Fly_End')
|
||||||
|
}, 0.1)
|
||||||
flyNode.destroy();
|
flyNode.destroy();
|
||||||
|
|
||||||
// 2.5 累加倍率,信息栏文本根据每个倍率到达而改变
|
// 2.5 累加倍率,信息栏文本根据每个倍率到达而改变
|
||||||
|
|||||||
@ -45,13 +45,14 @@ export class TotalWinSpine extends Component {
|
|||||||
.to(0.5, { scale: new Vec3(1, 1, 1) }, { easing: 'bounceOut' })
|
.to(0.5, { scale: new Vec3(1, 1, 1) }, { easing: 'bounceOut' })
|
||||||
.start();
|
.start();
|
||||||
|
|
||||||
this.labelController = UIManager.instance.tweenScorelinear(0, totalWinCount, 3)
|
this.labelController = UIManager.instance.tweenScorelinear(0, totalWinCount, 3.3)
|
||||||
.onUpdate((v: number) => {
|
.onUpdate((v: number) => {
|
||||||
this.totalWinCount.getComponent(Label).string = gold2cash(v);
|
this.totalWinCount.getComponent(Label).string = gold2cash(v);
|
||||||
})
|
})
|
||||||
.onComplete(() => {
|
.onComplete(() => {
|
||||||
this.collectBtn.active = true;
|
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.totalWinCount.getComponent(Label).string = gold2cash(totalWinCount);
|
||||||
this.scheduleOnce(() => {
|
this.scheduleOnce(() => {
|
||||||
this.onClickCollectBtn();
|
this.onClickCollectBtn();
|
||||||
@ -61,11 +62,16 @@ export class TotalWinSpine extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onClickGrayBg() {
|
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);
|
this.node.getChildByName('grayBg').off(Node.EventType.TOUCH_START, this.onClickGrayBg, this);
|
||||||
Tween.stopAllByTarget(this.labelController.holder);
|
Tween.stopAllByTarget(this.labelController.holder);
|
||||||
this.collectBtn.active = true;
|
this.collectBtn.active = true;
|
||||||
this.totalWinCount.getComponent(Label).string = gold2cash(this.totalWinCountValue);
|
this.totalWinCount.getComponent(Label).string = gold2cash(this.totalWinCountValue);
|
||||||
|
this.scheduleOnce(() => {
|
||||||
|
this.onClickCollectBtn();
|
||||||
|
}, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
onClickCollectBtn() {
|
onClickCollectBtn() {
|
||||||
|
|||||||
BIN
assets/resources/audio/Slot_Msg_Free_Total_Win.mp3
Normal file
BIN
assets/resources/audio/Slot_Msg_Free_Total_Win.mp3
Normal file
Binary file not shown.
14
assets/resources/audio/Slot_Msg_Free_Total_Win.mp3.meta
Normal file
14
assets/resources/audio/Slot_Msg_Free_Total_Win.mp3.meta
Normal file
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user