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

update anim the

parent 8b46d24e
...@@ -3187,7 +3187,7 @@ ...@@ -3187,7 +3187,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, -200,
0, 0,
0, 0,
0, 0,
......
This diff is collapsed.
...@@ -67,10 +67,11 @@ export default class BuaController extends cc.Component { ...@@ -67,10 +67,11 @@ export default class BuaController extends cc.Component {
}, 0.2) }, 0.2)
cc.tween(this.node) cc.tween(this.node)
.by(0.5, { position: cc.v3(1000,) }) .delay(0.5)
.call(() => { .call(() => {
eventTarget.emit(SHOW_CARD_POPUP); eventTarget.emit(SHOW_CARD_POPUP);
}) })
.by(0.5, { position: cc.v3(1000,) })
.start(); .start();
} }
......
...@@ -5,4 +5,18 @@ const { ccclass, property } = cc._decorator; ...@@ -5,4 +5,18 @@ const { ccclass, property } = cc._decorator;
@ccclass @ccclass
export default class TheController extends cc.Component { 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