Commit 8d8b6143 authored by 杨一航's avatar 杨一航

feat: 流程调整

parent 0243e50c
...@@ -78,25 +78,25 @@ ...@@ -78,25 +78,25 @@
"__id__": 7 "__id__": 7
}, },
{ {
"__id__": 114 "__id__": 117
}, },
{ {
"__id__": 130 "__id__": 133
}, },
{ {
"__id__": 132 "__id__": 135
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 134 "__id__": 137
}, },
{ {
"__id__": 135 "__id__": 138
}, },
{ {
"__id__": 136 "__id__": 139
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -375,16 +375,19 @@ ...@@ -375,16 +375,19 @@
"__id__": 94 "__id__": 94
}, },
{ {
"__id__": 100 "__id__": 97
}, },
{ {
"__id__": 107 "__id__": 103
},
{
"__id__": 110
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 113 "__id__": 116
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4598,6 +4601,171 @@ ...@@ -4598,6 +4601,171 @@
"_N$target": null, "_N$target": null,
"_id": "b62XfVsnRCVrgTnxhcewWu" "_id": "b62XfVsnRCVrgTnxhcewWu"
}, },
{
"__type__": "cc.Node",
"_name": "restart",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 95
},
{
"__id__": 96
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 489,
"height": 167
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
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": "70Jrj02MFHMKV4bUvLckoQ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 94
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "749796f2-aa4f-4286-a0b2-a5d951bd9084"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "7ebVMU0PlGxI5xGCcoLLQV"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 94
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "0f1+6iBs1OLbieUt0c3hLQ"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn_go", "_name": "btn_go",
...@@ -4607,19 +4775,19 @@ ...@@ -4607,19 +4775,19 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 95 "__id__": 98
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 97 "__id__": 100
}, },
{ {
"__id__": 98 "__id__": 101
}, },
{ {
"__id__": 99 "__id__": 102
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4675,13 +4843,13 @@ ...@@ -4675,13 +4843,13 @@
"_name": "lb", "_name": "lb",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 94 "__id__": 97
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 96 "__id__": 99
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4737,7 +4905,7 @@ ...@@ -4737,7 +4905,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 95 "__id__": 98
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4770,7 +4938,7 @@ ...@@ -4770,7 +4938,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 94 "__id__": 97
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4802,7 +4970,7 @@ ...@@ -4802,7 +4970,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 94 "__id__": 97
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -4870,7 +5038,7 @@ ...@@ -4870,7 +5038,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 94 "__id__": 97
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -4901,13 +5069,13 @@ ...@@ -4901,13 +5069,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 101 "__id__": 104
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 106 "__id__": 109
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4963,20 +5131,20 @@ ...@@ -4963,20 +5131,20 @@
"_name": "lb", "_name": "lb",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 100 "__id__": 103
}, },
"_children": [ "_children": [
{ {
"__id__": 102 "__id__": 105
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 104 "__id__": 107
}, },
{ {
"__id__": 105 "__id__": 108
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5032,13 +5200,13 @@ ...@@ -5032,13 +5200,13 @@
"_name": "right_ske", "_name": "right_ske",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 101 "__id__": 104
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 103 "__id__": 106
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5094,7 +5262,7 @@ ...@@ -5094,7 +5262,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 102 "__id__": 105
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5134,7 +5302,7 @@ ...@@ -5134,7 +5302,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 101 "__id__": 104
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5169,7 +5337,7 @@ ...@@ -5169,7 +5337,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 101 "__id__": 104
}, },
"_enabled": true, "_enabled": true,
"_color": { "_color": {
...@@ -5192,7 +5360,7 @@ ...@@ -5192,7 +5360,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 100 "__id__": 103
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5228,16 +5396,16 @@ ...@@ -5228,16 +5396,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 108 "__id__": 111
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 111 "__id__": 114
}, },
{ {
"__id__": 112 "__id__": 115
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5293,16 +5461,16 @@ ...@@ -5293,16 +5461,16 @@
"_name": "lb", "_name": "lb",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 107 "__id__": 110
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 109 "__id__": 112
}, },
{ {
"__id__": 110 "__id__": 113
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5358,7 +5526,7 @@ ...@@ -5358,7 +5526,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 108 "__id__": 111
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5393,7 +5561,7 @@ ...@@ -5393,7 +5561,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 108 "__id__": 111
}, },
"_enabled": true, "_enabled": true,
"_color": { "_color": {
...@@ -5416,7 +5584,7 @@ ...@@ -5416,7 +5584,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 107 "__id__": 110
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -5448,7 +5616,7 @@ ...@@ -5448,7 +5616,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 107 "__id__": 110
}, },
"_enabled": true, "_enabled": true,
"_id": "d3jhg8+Y5Nm6MliA6sDChp" "_id": "d3jhg8+Y5Nm6MliA6sDChp"
...@@ -5489,13 +5657,13 @@ ...@@ -5489,13 +5657,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 115 "__id__": 118
}, },
{ {
"__id__": 118 "__id__": 121
}, },
{ {
"__id__": 119 "__id__": 122
} }
], ],
"_active": true, "_active": true,
...@@ -5553,11 +5721,11 @@ ...@@ -5553,11 +5721,11 @@
"_name": "font", "_name": "font",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 114 "__id__": 117
}, },
"_children": [ "_children": [
{ {
"__id__": 116 "__id__": 119
} }
], ],
"_active": true, "_active": true,
...@@ -5615,13 +5783,13 @@ ...@@ -5615,13 +5783,13 @@
"_name": "BRLNSDB", "_name": "BRLNSDB",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 115 "__id__": 118
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 117 "__id__": 120
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5677,7 +5845,7 @@ ...@@ -5677,7 +5845,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 116 "__id__": 119
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5712,7 +5880,7 @@ ...@@ -5712,7 +5880,7 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 114 "__id__": 117
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
...@@ -5770,23 +5938,23 @@ ...@@ -5770,23 +5938,23 @@
"_name": "audio", "_name": "audio",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 114 "__id__": 117
}, },
"_children": [ "_children": [
{ {
"__id__": 120 "__id__": 123
}, },
{ {
"__id__": 122 "__id__": 125
}, },
{ {
"__id__": 124 "__id__": 127
}, },
{ {
"__id__": 126 "__id__": 129
}, },
{ {
"__id__": 128 "__id__": 131
} }
], ],
"_active": true, "_active": true,
...@@ -5844,13 +6012,13 @@ ...@@ -5844,13 +6012,13 @@
"_name": "btn", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 119 "__id__": 122
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 121 "__id__": 124
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5906,7 +6074,7 @@ ...@@ -5906,7 +6074,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 120 "__id__": 123
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -5925,13 +6093,13 @@ ...@@ -5925,13 +6093,13 @@
"_name": "right", "_name": "right",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 119 "__id__": 122
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 123 "__id__": 126
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5987,7 +6155,7 @@ ...@@ -5987,7 +6155,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 122 "__id__": 125
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6006,13 +6174,13 @@ ...@@ -6006,13 +6174,13 @@
"_name": "jump", "_name": "jump",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 119 "__id__": 122
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 125 "__id__": 128
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6068,7 +6236,7 @@ ...@@ -6068,7 +6236,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 124 "__id__": 127
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6087,13 +6255,13 @@ ...@@ -6087,13 +6255,13 @@
"_name": "wrong", "_name": "wrong",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 119 "__id__": 122
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 127 "__id__": 130
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6149,7 +6317,7 @@ ...@@ -6149,7 +6317,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 126 "__id__": 129
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6168,13 +6336,13 @@ ...@@ -6168,13 +6336,13 @@
"_name": "yeah", "_name": "yeah",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 119 "__id__": 122
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 129 "__id__": 132
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6230,7 +6398,7 @@ ...@@ -6230,7 +6398,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 128 "__id__": 131
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6255,7 +6423,7 @@ ...@@ -6255,7 +6423,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 131 "__id__": 134
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6311,7 +6479,7 @@ ...@@ -6311,7 +6479,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 130 "__id__": 133
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6336,7 +6504,7 @@ ...@@ -6336,7 +6504,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 133 "__id__": 136
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6392,7 +6560,7 @@ ...@@ -6392,7 +6560,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 132 "__id__": 135
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6478,7 +6646,7 @@ ...@@ -6478,7 +6646,7 @@
"__id__": 78 "__id__": 78
}, },
"dragObj": { "dragObj": {
"__id__": 107 "__id__": 110
}, },
"itemBg": { "itemBg": {
"__id__": 44 "__id__": 44
...@@ -6487,7 +6655,7 @@ ...@@ -6487,7 +6655,7 @@
"__id__": 45 "__id__": 45
}, },
"box": { "box": {
"__id__": 100 "__id__": 103
}, },
"dragRoot": { "dragRoot": {
"__id__": 49 "__id__": 49
...@@ -6495,9 +6663,12 @@ ...@@ -6495,9 +6663,12 @@
"btn_start": { "btn_start": {
"__id__": 91 "__id__": 91
}, },
"btn_end": { "btn_restart": {
"__id__": 94 "__id__": 94
}, },
"btn_end": {
"__id__": 97
},
"cover": { "cover": {
"__id__": 84 "__id__": 84
}, },
......
...@@ -20,7 +20,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -20,7 +20,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
itemBg = null; itemBg = null;
@property(cc.Node) @property(cc.Node)
rect = null; rect: cc.Node = null;
@property(cc.Node) @property(cc.Node)
box = null; box = null;
...@@ -30,6 +30,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -30,6 +30,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
@property(cc.Node) @property(cc.Node)
btn_start: cc.Node = null; btn_start: cc.Node = null;
@property(cc.Node)
btn_restart: cc.Node = null;
@property(cc.Node) @property(cc.Node)
btn_end: cc.Node = null; btn_end: cc.Node = null;
...@@ -99,7 +102,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -99,7 +102,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
startPage() { startPage() {
this.btn_start.active = false; this.btn_start.active = false;
this.cover.active = false; this.cover.active = false;
this.btn_restart.active = false;
this.boyNode.getComponent(Boy).playRun(-1); this.boyNode.getComponent(Boy).playRun(-1);
this.boyNode.scaleX = -0.5; this.boyNode.scaleX = -0.5;
...@@ -109,13 +112,32 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -109,13 +112,32 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initPageView(); this.initPageView();
}
restartPage() {
this.btn_start.active = false;
this.btn_restart.active = false;
this.cover.active = false;
this.btn_end.active = false;
this.dragRoot.children.forEach((val) => {
val.removeAllChildren();
});
this.rect.removeAllChildren();
this.boyNode.getComponent(Boy).playtalk(-1);
this.playAudioByUrl(this.data.start_audio_url, () => {
this.boyNode.getComponent(Boy).playNormal();
this.initPageView();
})
} }
initBg() { initBg() {
const bgNode = cc.find('Canvas/bg'); const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax; bgNode.scale = this._mapScaleMax;
cc.tween(this.btn_start).to(0.3, { scale: 1.1 }).to(0.2, { scale: 1 }).delay(1).union().repeatForever().start(); cc.tween(this.btn_start).to(0.3, { scale: 1.1 }).to(0.2, { scale: 1 }).delay(1).union().repeatForever().start();
cc.tween(this.btn_restart).to(0.3, { scale: 1.1 }).to(0.2, { scale: 1 }).delay(1).union().repeatForever().start();
this.btn_restart.active = false;
this.cover.active = true; this.cover.active = true;
this.btn_start.on("click", this.startPage, this) this.btn_start.on("click", this.startPage, this)
this.btn_restart.on("click", this.restartPage, this)
this.btn_start.active = false; this.btn_start.active = false;
this.btn_end.active = false; this.btn_end.active = false;
...@@ -177,7 +199,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -177,7 +199,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.log(keyMap) cc.log(keyMap)
for (let i = 0; i < this.dragData.length; ++i) { for (let i = 0; i < this.dragData.length; ++i) {
list[i].removeAllChildren();
let itemInfo = this.dragData[i]; let itemInfo = this.dragData[i];
let key = itemInfo.text let key = itemInfo.text
let dragNode = cc.instantiate(this.dragObj); let dragNode = cc.instantiate(this.dragObj);
...@@ -219,6 +241,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -219,6 +241,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.playAudioByUrl(this.data.end_audio_url, () => { this.playAudioByUrl(this.data.end_audio_url, () => {
this.boyNode.getComponent(Boy).playNormal(); this.boyNode.getComponent(Boy).playNormal();
this.btn_end.active = true; this.btn_end.active = true;
this.btn_restart.active = true;
}) })
......
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