Commit 5165324e authored by Vũ Gia Vương's avatar Vũ Gia Vương

update anim the

parent 8b46d24e
......@@ -3187,7 +3187,7 @@
"ctor": "Float64Array",
"array": [
0,
0,
-200,
0,
0,
0,
......
This diff is collapsed.
......@@ -67,10 +67,11 @@ export default class BuaController extends cc.Component {
}, 0.2)
cc.tween(this.node)
.by(0.5, { position: cc.v3(1000,) })
.delay(0.5)
.call(() => {
eventTarget.emit(SHOW_CARD_POPUP);
})
.by(0.5, { position: cc.v3(1000,) })
.start();
}
......
......@@ -5,4 +5,18 @@ const { ccclass, property } = cc._decorator;
@ccclass
export default class TheController extends cc.Component {
private _spine: sp.Skeleton = null;
protected onLoad(): void {
this._spine = this.node.getComponent(sp.Skeleton);
this._spine.setCompleteListener((trackEntry) => {
if (trackEntry.animation.name == 'Open') {
this._spine.setAnimation(0, 'Idle', true);
console.log('Idle', )
}
})
}
protected onEnable(): void {
this._spine.setAnimation(0, 'Open', false);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment