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,
......
{"skeleton":{"hash":"eRRGZ0h8EXj0xG4RyO4OdYas99Y","spine":"3.7.94","width":1080,"height":1393,"images":"./Image/","audio":""},"bones":[{"name":"root"},{"name":"open/light","parent":"root","x":-15.13,"y":23.38},{"name":"open/Box","parent":"open/light","x":20.21,"y":-15},{"name":"open/the","parent":"open/Box","x":-1.81,"y":5.42},{"name":"open/Star","parent":"open/Box","x":-11.4,"y":2.85},{"name":"open/light3","parent":"open/light","x":-7.62,"y":-7.96},{"name":"open/Star2","parent":"open/Box","x":-11.4,"y":2.85},{"name":"open/Star3","parent":"open/Box","x":-11.4,"y":2.85},{"name":"open/Star4","parent":"open/Box","x":-11.4,"y":2.85},{"name":"open/Star5","parent":"open/Box","x":-11.4,"y":2.85}],"slots":[{"name":"open/light","bone":"open/light3","attachment":"open/light"},{"name":"open/Box","bone":"open/Box","attachment":"open/Box"},{"name":"open/the","bone":"open/the","attachment":"open/the"},{"name":"open/Star","bone":"open/Star","attachment":"open/Star"},{"name":"open/Star2","bone":"open/Star2","attachment":"open/Star"},{"name":"open/Star3","bone":"open/Star3","attachment":"open/Star"},{"name":"open/Star4","bone":"open/Star4","attachment":"open/Star"},{"name":"open/Star5","bone":"open/Star5","attachment":"open/Star"}],"skins":{"default":{"open/Box":{"open/Box":{"x":-2.84,"y":0.39,"width":441,"height":421}},"open/Star":{"open/Star":{"x":4.55,"y":3.22,"width":154,"height":157}},"open/Star2":{"open/Star":{"x":4.55,"y":3.22,"width":154,"height":157}},"open/Star3":{"open/Star":{"x":4.55,"y":3.22,"width":154,"height":157}},"open/Star4":{"open/Star":{"x":4.55,"y":3.22,"width":154,"height":157}},"open/Star5":{"open/Star":{"x":4.55,"y":3.22,"width":154,"height":157}},"open/light":{"open/light":{"x":12.96,"y":32.52,"width":1080,"height":1393}},"open/the":{"open/the":{"x":0.35,"y":-0.92,"width":441,"height":421}}}},"animations":{"Idle":{"bones":{"open/Star":{"translate":[{"time":0,"x":-179.33,"y":-223.7},{"time":0.6667,"x":-179.33,"y":-209.36},{"time":1.4333,"x":-179.33,"y":-223.7}],"scale":[{"time":0,"x":0.5,"y":0.5}]},"open/light3":{"rotate":[{"time":0,"angle":0},{"time":0.6667,"angle":180},{"time":1.4333,"angle":0}]},"root":{"translate":[{"time":0,"x":0,"y":399.76}]},"open/light":{"translate":[{"time":0,"x":0,"y":0,"curve":[0.25,0,0.75,1]},{"time":0.6,"x":0,"y":8.6,"curve":[0.25,0,0.75,1]},{"time":1.4333,"x":0,"y":0}]},"open/Star2":{"translate":[{"time":0,"x":-328.47,"y":286.8,"curve":[0.25,0,0.75,1]},{"time":0.7667,"x":-311.26,"y":286.8,"curve":[0.25,0,0.75,1]},{"time":1.4333,"x":-328.47,"y":286.8}],"scale":[{"time":0,"x":0.8,"y":0.8}]},"open/Star3":{"translate":[{"time":0,"x":207.85,"y":-246.65,"curve":[0.25,0,0.75,1]},{"time":0.7333,"x":227.92,"y":-246.65,"curve":[0.25,0,0.75,1]},{"time":1.4333,"x":207.85,"y":-246.65}]},"open/Star4":{"translate":[{"time":0,"x":-380.09,"y":25.81,"curve":[0.25,0,0.75,1]},{"time":0.6667,"x":-400.17,"y":25.81,"curve":[0.25,0,0.75,1]},{"time":1.4333,"x":-380.09,"y":25.81}]},"open/Star5":{"translate":[{"time":0,"x":316.83,"y":232.31},{"time":0.7333,"x":296.75,"y":232.31},{"time":1.4333,"x":316.83,"y":232.31}]}}},"Open":{"bones":{"open/Star":{"translate":[{"time":0,"x":-179.33,"y":-223.7}],"scale":[{"time":0,"x":0.5,"y":0.5}]},"open/light3":{"rotate":[{"time":0,"angle":0},{"time":0.6667,"angle":180},{"time":1.4333,"angle":0}]},"root":{"translate":[{"time":0,"x":0,"y":0,"curve":[0.25,0,0.75,1]},{"time":0.5667,"x":0,"y":435.4,"curve":[0.25,0,0.75,1]},{"time":0.7,"x":0,"y":464.15,"curve":[0.25,0,0.75,1]},{"time":0.8667,"x":0,"y":393.46,"curve":[0.25,0,0.75,1]},{"time":0.9667,"x":0,"y":399.76}],"scale":[{"time":0,"x":0,"y":0,"curve":[0.25,0,0.75,1]},{"time":0.5667,"x":1,"y":1}]},"open/Star2":{"translate":[{"time":0,"x":-328.47,"y":286.8},{"time":0.6667,"x":-328.47,"y":235.18},{"time":1.4333,"x":-328.47,"y":286.8}],"scale":[{"time":0,"x":0.8,"y":0.8}]},"open/Star3":{"translate":[{"time":0,"x":207.85,"y":-246.65},{"time":0.6667,"x":179.17,"y":-246.65},{"time":1.4333,"x":207.85,"y":-246.65}],"scale":[{"time":0,"x":0.6,"y":0.6},{"time":1.4333,"x":1,"y":1}]},"open/Star4":{"translate":[{"time":0,"x":-380.09,"y":25.81},{"time":0.6667,"x":-380.09,"y":43.02},{"time":1.4333,"x":-380.09,"y":25.81}]},"open/Star5":{"translate":[{"time":0,"x":316.83,"y":232.31},{"time":0.6667,"x":316.83,"y":286.8},{"time":1.4333,"x":316.83,"y":232.31}]}}}}}
\ No newline at end of file
{
"skeleton": {
"hash": "eRRGZ0h8EXj0xG4RyO4OdYas99Y",
"spine": "3.7.94",
"width": 1080,
"height": 1393,
"images": "./Image/",
"audio": ""
},
"bones": [
{
"name": "root"
},
{
"name": "open/light",
"parent": "root",
"x": -15.13,
"y": 23.38
},
{
"name": "open/Box",
"parent": "open/light",
"x": 20.21,
"y": -15
},
{
"name": "open/the",
"parent": "open/Box",
"x": -1.81,
"y": 5.42
},
{
"name": "open/Star",
"parent": "open/Box",
"x": -11.4,
"y": 2.85
},
{
"name": "open/light3",
"parent": "open/light",
"x": -7.62,
"y": -7.96
},
{
"name": "open/Star2",
"parent": "open/Box",
"x": -11.4,
"y": 2.85
},
{
"name": "open/Star3",
"parent": "open/Box",
"x": -11.4,
"y": 2.85
},
{
"name": "open/Star4",
"parent": "open/Box",
"x": -11.4,
"y": 2.85
},
{
"name": "open/Star5",
"parent": "open/Box",
"x": -11.4,
"y": 2.85
}
],
"slots": [
{
"name": "open/light",
"bone": "open/light3",
"attachment": "open/light"
},
{
"name": "open/Box",
"bone": "open/Box",
"attachment": "open/Box"
},
{
"name": "open/the",
"bone": "open/the",
"attachment": "open/the"
},
{
"name": "open/Star",
"bone": "open/Star",
"attachment": "open/Star"
},
{
"name": "open/Star2",
"bone": "open/Star2",
"attachment": "open/Star"
},
{
"name": "open/Star3",
"bone": "open/Star3",
"attachment": "open/Star"
},
{
"name": "open/Star4",
"bone": "open/Star4",
"attachment": "open/Star"
},
{
"name": "open/Star5",
"bone": "open/Star5",
"attachment": "open/Star"
}
],
"skins": {
"default": {
"open/Box": {
"open/Box": {
"x": -2.84,
"y": 0.39,
"width": 441,
"height": 421
}
},
"open/Star": {
"open/Star": {
"x": 4.55,
"y": 3.22,
"width": 154,
"height": 157
}
},
"open/Star2": {
"open/Star": {
"x": 4.55,
"y": 3.22,
"width": 154,
"height": 157
}
},
"open/Star3": {
"open/Star": {
"x": 4.55,
"y": 3.22,
"width": 154,
"height": 157
}
},
"open/Star4": {
"open/Star": {
"x": 4.55,
"y": 3.22,
"width": 154,
"height": 157
}
},
"open/Star5": {
"open/Star": {
"x": 4.55,
"y": 3.22,
"width": 154,
"height": 157
}
},
"open/light": {
"open/light": {
"x": 12.96,
"y": 32.52,
"width": 1080,
"height": 1393
}
},
"open/the": {
"open/the": {
"x": 0.35,
"y": -0.92,
"width": 441,
"height": 421
}
}
}
},
"animations": {
"Idle": {
"bones": {
"open/Star": {
"translate": [
{
"time": 0,
"x": -179.33,
"y": -223.7
},
{
"time": 0.6667,
"x": -179.33,
"y": -209.36
},
{
"time": 1.4333,
"x": -179.33,
"y": -223.7
}
],
"scale": [
{
"time": 0,
"x": 0.5,
"y": 0.5
}
]
},
"open/light3": {
"rotate": [
{
"time": 0,
"angle": 0
},
{
"time": 0.6667,
"angle": 180
},
{
"time": 1.4333,
"angle": 0
}
]
},
"root": {
"translate": [
{
"time": 0,
"x": 0,
"y": 399.76
}
]
},
"open/light": {
"translate": [
{
"time": 0,
"x": 0,
"y": 0,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 0.6,
"x": 0,
"y": 8.6,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 1.4333,
"x": 0,
"y": 0
}
]
},
"open/Star2": {
"translate": [
{
"time": 0,
"x": -328.47,
"y": 286.8,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 0.7667,
"x": -311.26,
"y": 286.8,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 1.4333,
"x": -328.47,
"y": 286.8
}
],
"scale": [
{
"time": 0,
"x": 0.8,
"y": 0.8
}
]
},
"open/Star3": {
"translate": [
{
"time": 0,
"x": 207.85,
"y": -246.65,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 0.7333,
"x": 227.92,
"y": -246.65,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 1.4333,
"x": 207.85,
"y": -246.65
}
]
},
"open/Star4": {
"translate": [
{
"time": 0,
"x": -380.09,
"y": 25.81,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 0.6667,
"x": -400.17,
"y": 25.81,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 1.4333,
"x": -380.09,
"y": 25.81
}
]
},
"open/Star5": {
"translate": [
{
"time": 0,
"x": 316.83,
"y": 232.31
},
{
"time": 0.7333,
"x": 296.75,
"y": 232.31
},
{
"time": 1.4333,
"x": 316.83,
"y": 232.31
}
]
}
}
},
"Open": {
"bones": {
"open/Star": {
"translate": [
{
"time": 0,
"x": -179.33,
"y": -223.7
}
],
"scale": [
{
"time": 0,
"x": 0.5,
"y": 0.5
}
]
},
"open/light3": {
"rotate": [
{
"time": 0,
"angle": 0
},
{
"time": 0.6667,
"angle": 180
},
{
"time": 1.4333,
"angle": 0
}
]
},
"root": {
"translate": [
{
"time": 0,
"x": 0,
"y": 0,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 0.5667,
"x": 0,
"y": 435.4,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 0.7,
"x": 0,
"y": 464.15,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 0.8667,
"x": 0,
"y": 393.46,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 0.9667,
"x": 0,
"y": 399.76
}
],
"scale": [
{
"time": 0,
"x": 0,
"y": 0,
"curve": [
0.25,
0,
0.75,
1
]
},
{
"time": 0.5667,
"x": 1,
"y": 1
}
]
},
"open/Star2": {
"translate": [
{
"time": 0,
"x": -328.47,
"y": 286.8
},
{
"time": 0.6667,
"x": -328.47,
"y": 235.18
},
{
"time": 1.4333,
"x": -328.47,
"y": 286.8
}
],
"scale": [
{
"time": 0,
"x": 0.8,
"y": 0.8
}
]
},
"open/Star3": {
"translate": [
{
"time": 0,
"x": 207.85,
"y": -246.65
},
{
"time": 0.6667,
"x": 179.17,
"y": -246.65
},
{
"time": 1.4333,
"x": 207.85,
"y": -246.65
}
],
"scale": [
{
"time": 0,
"x": 0.6,
"y": 0.6
},
{
"time": 1.4333,
"x": 1,
"y": 1
}
]
},
"open/Star4": {
"translate": [
{
"time": 0,
"x": -380.09,
"y": 25.81
},
{
"time": 0.6667,
"x": -380.09,
"y": 43.02
},
{
"time": 1.4333,
"x": -380.09,
"y": 25.81
}
]
},
"open/Star5": {
"translate": [
{
"time": 0,
"x": 316.83,
"y": 232.31
},
{
"time": 0.6667,
"x": 316.83,
"y": 286.8
},
{
"time": 1.4333,
"x": 316.83,
"y": 232.31
}
]
}
}
}
}
}
\ No newline at end of file
......@@ -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