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

update text

parent e38ff6f2
...@@ -90,16 +90,16 @@ ...@@ -90,16 +90,16 @@
"__id__": 73 "__id__": 73
}, },
{ {
"__id__": 86 "__id__": 88
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 92 "__id__": 94
}, },
{ {
"__id__": 93 "__id__": 95
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3247,8 +3247,8 @@ ...@@ -3247,8 +3247,8 @@
0, 0,
-0.25881904510252074, -0.25881904510252074,
0.9659258262890683, 0.9659258262890683,
1.5, 0.9,
1.5, 0.9,
1.5 1.5
] ]
}, },
...@@ -3483,15 +3483,18 @@ ...@@ -3483,15 +3483,18 @@
}, },
{ {
"__id__": 77 "__id__": 77
},
{
"__id__": 79
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 84 "__id__": 86
}, },
{ {
"__id__": 85 "__id__": 87
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3659,6 +3662,100 @@ ...@@ -3659,6 +3662,100 @@
"_enabled": true, "_enabled": true,
"_id": "8aU9CpQKRFmJMSMUCpaItu" "_id": "8aU9CpQKRFmJMSMUCpaItu"
}, },
{
"__type__": "cc.Node",
"_name": "text1",
"_objFlags": 0,
"_parent": {
"__id__": 73
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 78
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 458,
"height": 145
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-432.087,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "50GemynlFPV78n/RFCBoou"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 77
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "95fbff81-21f6-4a58-9bc5-c8fc3f869e8c"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "69GMfEgIVFoqVVPRmrHbxB"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Replay Button", "_name": "Replay Button",
...@@ -3668,13 +3765,13 @@ ...@@ -3668,13 +3765,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 78 "__id__": 80
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 83 "__id__": 85
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3730,20 +3827,20 @@ ...@@ -3730,20 +3827,20 @@
"_name": "Background", "_name": "Background",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 77 "__id__": 79
}, },
"_children": [ "_children": [
{ {
"__id__": 79 "__id__": 81
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 81 "__id__": 83
}, },
{ {
"__id__": 82 "__id__": 84
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3799,13 +3896,13 @@ ...@@ -3799,13 +3896,13 @@
"_name": "Label", "_name": "Label",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 78 "__id__": 80
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 80 "__id__": 82
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3861,7 +3958,7 @@ ...@@ -3861,7 +3958,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 79 "__id__": 81
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3896,7 +3993,7 @@ ...@@ -3896,7 +3993,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 78 "__id__": 80
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3928,7 +4025,7 @@ ...@@ -3928,7 +4025,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 78 "__id__": 80
}, },
"_enabled": true, "_enabled": true,
"alignMode": 0, "alignMode": 0,
...@@ -3955,7 +4052,7 @@ ...@@ -3955,7 +4052,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 77 "__id__": 79
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -4028,7 +4125,7 @@ ...@@ -4028,7 +4125,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
}, },
"_N$target": { "_N$target": {
"__id__": 78 "__id__": 80
}, },
"_id": "adCMRaOEVD5LOjd7MAm9EO" "_id": "adCMRaOEVD5LOjd7MAm9EO"
}, },
...@@ -4061,16 +4158,16 @@ ...@@ -4061,16 +4158,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 87 "__id__": 89
}, },
{ {
"__id__": 89 "__id__": 91
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 91 "__id__": 93
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4126,13 +4223,13 @@ ...@@ -4126,13 +4223,13 @@
"_name": "beer-bottle-rolling-on-a-sidewalk-82234", "_name": "beer-bottle-rolling-on-a-sidewalk-82234",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 86 "__id__": 88
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 88 "__id__": 90
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4188,7 +4285,7 @@ ...@@ -4188,7 +4285,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 87 "__id__": 89
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4207,13 +4304,13 @@ ...@@ -4207,13 +4304,13 @@
"_name": "Cartoon Short Version 2_01", "_name": "Cartoon Short Version 2_01",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 86 "__id__": 88
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 90 "__id__": 92
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4269,7 +4366,7 @@ ...@@ -4269,7 +4366,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 89 "__id__": 91
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4288,11 +4385,11 @@ ...@@ -4288,11 +4385,11 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 86 "__id__": 88
}, },
"_enabled": true, "_enabled": true,
"rollingSound": { "rollingSound": {
"__id__": 88 "__id__": 90
}, },
"_id": "a5vu6IE1ROn6VO7UPM9J3p" "_id": "a5vu6IE1ROn6VO7UPM9J3p"
}, },
......
...@@ -12,6 +12,7 @@ export default class BuaController extends cc.Component { ...@@ -12,6 +12,7 @@ export default class BuaController extends cc.Component {
private _actions: Function[] = []; private _actions: Function[] = [];
private _skins = ["Bua", "Ga", "Gai_lung", "Gay"]; private _skins = ["Bua", "Ga", "Gai_lung", "Gay"];
private _isPlay = false; private _isPlay = false;
private _beatTotal = [1, 2, 3, 4];
protected onLoad(): void { protected onLoad(): void {
this.spine = this.node.getComponent(sp.Skeleton); this.spine = this.node.getComponent(sp.Skeleton);
...@@ -30,7 +31,8 @@ export default class BuaController extends cc.Component { ...@@ -30,7 +31,8 @@ export default class BuaController extends cc.Component {
private onTouchStart(): void { private onTouchStart(): void {
this._actions[this._count].bind(this)(); this._actions[this._count].bind(this)();
const beat = this._beatTotal[Global.tool];
console.log('beat', beat)
this._count = (this._count + 1) % this._actions.length; this._count = (this._count + 1) % this._actions.length;
} }
......
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