scatter动画调整
This commit is contained in:
parent
d715351fc0
commit
0cff858cd3
@ -128,6 +128,10 @@ export class Icon extends Component {
|
|||||||
this.normalNode.active = false;
|
this.normalNode.active = false;
|
||||||
this.spineNode.active = true;
|
this.spineNode.active = true;
|
||||||
spine.setAnimation(0, 'idle', true);
|
spine.setAnimation(0, 'idle', true);
|
||||||
|
} else if (this.index == 0) {
|
||||||
|
this.normalNode.active = false;
|
||||||
|
this.spineNode.active = true;
|
||||||
|
spine.setAnimation(0, 'chixu', true);
|
||||||
} else {
|
} else {
|
||||||
this.normalNode.active = true;
|
this.normalNode.active = true;
|
||||||
this.spineNode.active = false;
|
this.spineNode.active = false;
|
||||||
@ -211,8 +215,10 @@ export class Icon extends Component {
|
|||||||
if (bol) {
|
if (bol) {
|
||||||
this.normalNode.active = false;
|
this.normalNode.active = false;
|
||||||
this.spineNode.active = true;
|
this.spineNode.active = true;
|
||||||
spine.setAnimation(0, 'denggai', true);
|
spine.timeScale = 0.3
|
||||||
|
spine.setAnimation(0, 'denggai', false);
|
||||||
} else {
|
} else {
|
||||||
|
spine.timeScale = 1
|
||||||
this.playIdleSpine(true);
|
this.playIdleSpine(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -132,12 +132,11 @@ export class UpLayer extends Component {
|
|||||||
seen.add(n);
|
seen.add(n);
|
||||||
|
|
||||||
let icon = n.getComponent(Icon);
|
let icon = n.getComponent(Icon);
|
||||||
if (!icon || !icon.isWildOrScatter) continue;
|
if (!icon || !icon.isScatter) continue;
|
||||||
|
|
||||||
let msg = (roller as any).getNodeMsgFromPos(i);
|
let msg = (roller as any).getNodeMsgFromPos(i);
|
||||||
if (!msg) continue;
|
if (!msg) continue;
|
||||||
|
let type: 'Multi' | 'scatter' = 'scatter';
|
||||||
let type: 'Multi' | 'scatter' = icon.index === 0 ? 'Multi' : 'scatter';
|
|
||||||
this.adoptSpecial(msg.node, roller.rollerId, msg.start, msg.height, type);
|
this.adoptSpecial(msg.node, roller.rollerId, msg.start, msg.height, type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -173,7 +172,6 @@ export class UpLayer extends Component {
|
|||||||
|
|
||||||
|
|
||||||
playScatterWaitSpine(bol: boolean) {
|
playScatterWaitSpine(bol: boolean) {
|
||||||
console.log('播放scatter等待动画2', this.scatterLayer);
|
|
||||||
this.scatterLayer.children.forEach(child => child.getComponent(Icon).playScatterWaitSpine(bol));
|
this.scatterLayer.children.forEach(child => child.getComponent(Icon).playScatterWaitSpine(bol));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user