信息栏调整
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m24s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m24s
This commit is contained in:
parent
d3e998b287
commit
a506f742cc
File diff suppressed because it is too large
Load Diff
@ -51,8 +51,6 @@ export class SlotGame extends Component {
|
|||||||
|
|
||||||
// 赢分信息相关
|
// 赢分信息相关
|
||||||
private winType: Node = null;
|
private winType: Node = null;
|
||||||
private winTypeAni: Animation = null;
|
|
||||||
private winTypeParticle: ParticleSystem = null;
|
|
||||||
|
|
||||||
private normalWin: Node = null;
|
private normalWin: Node = null;
|
||||||
private normalWinSpin: sp.Skeleton = null;
|
private normalWinSpin: sp.Skeleton = null;
|
||||||
@ -110,8 +108,6 @@ export class SlotGame extends Component {
|
|||||||
this.scatterLayer = this.node.getChildByName('scatterLayer');
|
this.scatterLayer = this.node.getChildByName('scatterLayer');
|
||||||
|
|
||||||
this.winType = this.node.getChildByName('winType');
|
this.winType = this.node.getChildByName('winType');
|
||||||
this.winTypeAni = this.winType.getComponent(Animation);
|
|
||||||
this.winTypeParticle = this.winType.getChildByName('ParticleNode').getChildByName('Particle').getComponent(ParticleSystem);
|
|
||||||
|
|
||||||
let frameNode = this.winType.getChildByName('FrameNode');
|
let frameNode = this.winType.getChildByName('FrameNode');
|
||||||
this.normalWin = frameNode.getChildByName('marqueeFrame_02');
|
this.normalWin = frameNode.getChildByName('marqueeFrame_02');
|
||||||
@ -638,12 +634,8 @@ export class SlotGame extends Component {
|
|||||||
if (!bol) {
|
if (!bol) {
|
||||||
this.normalWin.active = false;
|
this.normalWin.active = false;
|
||||||
this.totalWin.active = false;
|
this.totalWin.active = false;
|
||||||
this.winTypeAni.node.getChildByName('AniNode').active = false;
|
|
||||||
this.winTypeAni.stop();
|
|
||||||
this.winTypeAni.resume();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.winTypeAni.node.getChildByName('AniNode').active = true;
|
|
||||||
// 设置活动显示窗口
|
// 设置活动显示窗口
|
||||||
if (isBigWin) {
|
if (isBigWin) {
|
||||||
this.totalWin.active = true;
|
this.totalWin.active = true;
|
||||||
@ -682,19 +674,19 @@ export class SlotGame extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 播放动画效果
|
// 播放动画效果
|
||||||
if (isFirstWin) {
|
// if (isFirstWin) {
|
||||||
this.winTypeAni.play('Marquee_in_animation');
|
// this.winTypeAni.play('Marquee_in_animation');
|
||||||
this.winTypeParticle.play();
|
// this.winTypeParticle.play();
|
||||||
this.winTypeAni.once(Animation.EventType.FINISHED, () => {
|
// this.winTypeAni.once(Animation.EventType.FINISHED, () => {
|
||||||
this.winTypeAni.play('Marquee_loop_animation');
|
// this.winTypeAni.play('Marquee_loop_animation');
|
||||||
});
|
// });
|
||||||
} else {
|
// } else {
|
||||||
this.winTypeAni.play('Marquee_win_animation');
|
// this.winTypeAni.play('Marquee_win_animation');
|
||||||
this.winTypeParticle.play();
|
// this.winTypeParticle.play();
|
||||||
this.winTypeAni.once(Animation.EventType.FINISHED, () => {
|
// this.winTypeAni.once(Animation.EventType.FINISHED, () => {
|
||||||
this.winTypeAni.play('Marquee_loop_animation');
|
// this.winTypeAni.play('Marquee_loop_animation');
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user