信息栏调整
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m24s

This commit is contained in:
TJH 2025-12-19 10:41:38 +08:00
parent d3e998b287
commit a506f742cc
2 changed files with 1684 additions and 1736 deletions

File diff suppressed because it is too large Load Diff

View File

@ -51,8 +51,6 @@ export class SlotGame extends Component {
// 赢分信息相关
private winType: Node = null;
private winTypeAni: Animation = null;
private winTypeParticle: ParticleSystem = null;
private normalWin: Node = null;
private normalWinSpin: sp.Skeleton = null;
@ -110,8 +108,6 @@ export class SlotGame extends Component {
this.scatterLayer = this.node.getChildByName('scatterLayer');
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');
this.normalWin = frameNode.getChildByName('marqueeFrame_02');
@ -638,12 +634,8 @@ export class SlotGame extends Component {
if (!bol) {
this.normalWin.active = false;
this.totalWin.active = false;
this.winTypeAni.node.getChildByName('AniNode').active = false;
this.winTypeAni.stop();
this.winTypeAni.resume();
return;
}
this.winTypeAni.node.getChildByName('AniNode').active = true;
// 设置活动显示窗口
if (isBigWin) {
this.totalWin.active = true;
@ -682,19 +674,19 @@ export class SlotGame extends Component {
}
// 播放动画效果
if (isFirstWin) {
this.winTypeAni.play('Marquee_in_animation');
this.winTypeParticle.play();
this.winTypeAni.once(Animation.EventType.FINISHED, () => {
this.winTypeAni.play('Marquee_loop_animation');
});
} else {
this.winTypeAni.play('Marquee_win_animation');
this.winTypeParticle.play();
this.winTypeAni.once(Animation.EventType.FINISHED, () => {
this.winTypeAni.play('Marquee_loop_animation');
});
}
// if (isFirstWin) {
// this.winTypeAni.play('Marquee_in_animation');
// this.winTypeParticle.play();
// this.winTypeAni.once(Animation.EventType.FINISHED, () => {
// this.winTypeAni.play('Marquee_loop_animation');
// });
// } else {
// this.winTypeAni.play('Marquee_win_animation');
// this.winTypeParticle.play();
// this.winTypeAni.once(Animation.EventType.FINISHED, () => {
// this.winTypeAni.play('Marquee_loop_animation');
// });
// }
}