Commit 043de7f2 authored by Tt's avatar Tt

音频顺序修改

parent b321010c
...@@ -138,7 +138,7 @@ export default class NewClass extends cc.Component { ...@@ -138,7 +138,7 @@ export default class NewClass extends cc.Component {
.to(0.8, { scale: 0 }, { easing: 'quadOut' }) .to(0.8, { scale: 0 }, { easing: 'quadOut' })
.call(() => { .call(() => {
pg.event.emit("mouse_num_game_end") pg.event.emit("mouse_num_game_end")
this.playAudio(this.starCountClip); // this.playAudio(this.starCountClip);
}) })
.start(); .start();
......
...@@ -81,28 +81,28 @@ ...@@ -81,28 +81,28 @@
"__id__": 73 "__id__": 73
}, },
{ {
"__id__": 96 "__id__": 98
}, },
{ {
"__id__": 101 "__id__": 103
}, },
{ {
"__id__": 115 "__id__": 117
}, },
{ {
"__id__": 127 "__id__": 129
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 148 "__id__": 150
}, },
{ {
"__id__": 149 "__id__": 151
}, },
{ {
"__id__": 150 "__id__": 152
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3672,7 +3672,7 @@ ...@@ -3672,7 +3672,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 95 "__id__": 97
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4397,6 +4397,9 @@ ...@@ -4397,6 +4397,9 @@
}, },
{ {
"__id__": 93 "__id__": 93
},
{
"__id__": 95
} }
], ],
"_active": true, "_active": true,
...@@ -4731,6 +4734,87 @@ ...@@ -4731,6 +4734,87 @@
"_atlas": null, "_atlas": null,
"_id": "fabnnS+spBUqA/e8sAfdmJ" "_id": "fabnnS+spBUqA/e8sAfdmJ"
}, },
{
"__type__": "cc.Node",
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 88
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 96
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-3.753,
9.381,
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": "b3yCZ4yH5FMoOFwwI1mNuP"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 95
},
"_enabled": true,
"_clip": {
"__uuid__": "b6c10896-d58d-47bc-88a9-c289d884c621"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "03YI0C/llETovJWsE2pOcl"
},
{ {
"__type__": "cc.Button", "__type__": "cc.Button",
"_name": "", "_name": "",
...@@ -4810,13 +4894,13 @@ ...@@ -4810,13 +4894,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 97 "__id__": 99
} }
], ],
"_active": false, "_active": false,
"_components": [], "_components": [],
"_prefab": { "_prefab": {
"__id__": 100 "__id__": 102
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -4870,17 +4954,17 @@ ...@@ -4870,17 +4954,17 @@
"_name": "particle_star", "_name": "particle_star",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 96 "__id__": 98
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 98 "__id__": 100
} }
], ],
"_prefab": { "_prefab": {
"__id__": 99 "__id__": 101
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -4934,7 +5018,7 @@ ...@@ -4934,7 +5018,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 97 "__id__": 99
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5035,7 +5119,7 @@ ...@@ -5035,7 +5119,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 96 "__id__": 98
}, },
"asset": { "asset": {
"__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2" "__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2"
...@@ -5046,7 +5130,7 @@ ...@@ -5046,7 +5130,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 96 "__id__": 98
}, },
"asset": { "asset": {
"__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2" "__uuid__": "d09bc553-5bcd-4ca6-a1f3-ac3c614315d2"
...@@ -5063,17 +5147,17 @@ ...@@ -5063,17 +5147,17 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 102 "__id__": 104
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 113 "__id__": 115
} }
], ],
"_prefab": { "_prefab": {
"__id__": 114 "__id__": 116
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -5127,23 +5211,23 @@ ...@@ -5127,23 +5211,23 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 101 "__id__": 103
}, },
"_children": [ "_children": [
{ {
"__id__": 103 "__id__": 105
}, },
{ {
"__id__": 106 "__id__": 108
}, },
{ {
"__id__": 109 "__id__": 111
} }
], ],
"_active": false, "_active": false,
"_components": [], "_components": [],
"_prefab": { "_prefab": {
"__id__": 112 "__id__": 114
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -5197,17 +5281,17 @@ ...@@ -5197,17 +5281,17 @@
"_name": "star_bg", "_name": "star_bg",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 102 "__id__": 104
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 104 "__id__": 106
} }
], ],
"_prefab": { "_prefab": {
"__id__": 105 "__id__": 107
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -5261,7 +5345,7 @@ ...@@ -5261,7 +5345,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 103 "__id__": 105
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5291,7 +5375,7 @@ ...@@ -5291,7 +5375,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 101 "__id__": 103
}, },
"asset": { "asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb" "__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
...@@ -5304,17 +5388,17 @@ ...@@ -5304,17 +5388,17 @@
"_name": "star", "_name": "star",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 102 "__id__": 104
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 107 "__id__": 109
} }
], ],
"_prefab": { "_prefab": {
"__id__": 108 "__id__": 110
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -5368,7 +5452,7 @@ ...@@ -5368,7 +5452,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 106 "__id__": 108
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5398,7 +5482,7 @@ ...@@ -5398,7 +5482,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 101 "__id__": 103
}, },
"asset": { "asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb" "__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
...@@ -5411,17 +5495,17 @@ ...@@ -5411,17 +5495,17 @@
"_name": "icon_bigstar", "_name": "icon_bigstar",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 102 "__id__": 104
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 110 "__id__": 112
} }
], ],
"_prefab": { "_prefab": {
"__id__": 111 "__id__": 113
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -5475,7 +5559,7 @@ ...@@ -5475,7 +5559,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 109 "__id__": 111
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5505,7 +5589,7 @@ ...@@ -5505,7 +5589,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 101 "__id__": 103
}, },
"asset": { "asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb" "__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
...@@ -5516,7 +5600,7 @@ ...@@ -5516,7 +5600,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 101 "__id__": 103
}, },
"asset": { "asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb" "__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
...@@ -5529,7 +5613,7 @@ ...@@ -5529,7 +5613,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 101 "__id__": 103
}, },
"_enabled": true, "_enabled": true,
"position": { "position": {
...@@ -5548,7 +5632,7 @@ ...@@ -5548,7 +5632,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 101 "__id__": 103
}, },
"asset": { "asset": {
"__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb" "__uuid__": "564dd930-80a8-4d89-bf96-f0f5be1e92cb"
...@@ -5565,23 +5649,23 @@ ...@@ -5565,23 +5649,23 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 116 "__id__": 118
}, },
{ {
"__id__": 119 "__id__": 121
}, },
{ {
"__id__": 122 "__id__": 124
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 125 "__id__": 127
} }
], ],
"_prefab": { "_prefab": {
"__id__": 126 "__id__": 128
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -5635,17 +5719,17 @@ ...@@ -5635,17 +5719,17 @@
"_name": "ske_candy", "_name": "ske_candy",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 115 "__id__": 117
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 117 "__id__": 119
} }
], ],
"_prefab": { "_prefab": {
"__id__": 118 "__id__": 120
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -5699,7 +5783,7 @@ ...@@ -5699,7 +5783,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 116 "__id__": 118
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5737,7 +5821,7 @@ ...@@ -5737,7 +5821,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 115 "__id__": 117
}, },
"asset": { "asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b" "__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
...@@ -5750,17 +5834,17 @@ ...@@ -5750,17 +5834,17 @@
"_name": "ske", "_name": "ske",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 115 "__id__": 117
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 120 "__id__": 122
} }
], ],
"_prefab": { "_prefab": {
"__id__": 121 "__id__": 123
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -5814,7 +5898,7 @@ ...@@ -5814,7 +5898,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 119 "__id__": 121
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5852,7 +5936,7 @@ ...@@ -5852,7 +5936,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 115 "__id__": 117
}, },
"asset": { "asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b" "__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
...@@ -5865,17 +5949,17 @@ ...@@ -5865,17 +5949,17 @@
"_name": "block", "_name": "block",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 115 "__id__": 117
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 123 "__id__": 125
} }
], ],
"_prefab": { "_prefab": {
"__id__": 124 "__id__": 126
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -5929,7 +6013,7 @@ ...@@ -5929,7 +6013,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 122 "__id__": 124
}, },
"_enabled": true, "_enabled": true,
"_id": "614Ol/VeZKyIbzJ5WMNHfT" "_id": "614Ol/VeZKyIbzJ5WMNHfT"
...@@ -5937,7 +6021,7 @@ ...@@ -5937,7 +6021,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 115 "__id__": 117
}, },
"asset": { "asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b" "__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
...@@ -5950,7 +6034,7 @@ ...@@ -5950,7 +6034,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 115 "__id__": 117
}, },
"_enabled": true, "_enabled": true,
"startPosition": { "startPosition": {
...@@ -5969,7 +6053,7 @@ ...@@ -5969,7 +6053,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 115 "__id__": 117
}, },
"asset": { "asset": {
"__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b" "__uuid__": "baf374f1-c8c5-4e57-a484-1fd6b41fb37b"
...@@ -5986,26 +6070,26 @@ ...@@ -5986,26 +6070,26 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 128 "__id__": 130
}, },
{ {
"__id__": 131 "__id__": 133
}, },
{ {
"__id__": 134 "__id__": 136
}, },
{ {
"__id__": 138 "__id__": 140
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 146 "__id__": 148
} }
], ],
"_prefab": { "_prefab": {
"__id__": 147 "__id__": 149
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -6059,17 +6143,17 @@ ...@@ -6059,17 +6143,17 @@
"_name": "shadow", "_name": "shadow",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 127 "__id__": 129
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 129 "__id__": 131
} }
], ],
"_prefab": { "_prefab": {
"__id__": 130 "__id__": 132
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -6123,7 +6207,7 @@ ...@@ -6123,7 +6207,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 128 "__id__": 130
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6153,7 +6237,7 @@ ...@@ -6153,7 +6237,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 127 "__id__": 129
}, },
"asset": { "asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a" "__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...@@ -6166,17 +6250,17 @@ ...@@ -6166,17 +6250,17 @@
"_name": "ske", "_name": "ske",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 127 "__id__": 129
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 132 "__id__": 134
} }
], ],
"_prefab": { "_prefab": {
"__id__": 133 "__id__": 135
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -6230,7 +6314,7 @@ ...@@ -6230,7 +6314,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 131 "__id__": 133
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6268,7 +6352,7 @@ ...@@ -6268,7 +6352,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 127 "__id__": 129
}, },
"asset": { "asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a" "__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...@@ -6281,20 +6365,20 @@ ...@@ -6281,20 +6365,20 @@
"_name": "block", "_name": "block",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 127 "__id__": 129
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 135 "__id__": 137
}, },
{ {
"__id__": 136 "__id__": 138
} }
], ],
"_prefab": { "_prefab": {
"__id__": 137 "__id__": 139
}, },
"_opacity": 100, "_opacity": 100,
"_color": { "_color": {
...@@ -6348,7 +6432,7 @@ ...@@ -6348,7 +6432,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 134 "__id__": 136
}, },
"_enabled": true, "_enabled": true,
"_id": "9e5NQLsFlN9YT5gPreIgpl" "_id": "9e5NQLsFlN9YT5gPreIgpl"
...@@ -6358,7 +6442,7 @@ ...@@ -6358,7 +6442,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 134 "__id__": 136
}, },
"_enabled": false, "_enabled": false,
"_materials": [ "_materials": [
...@@ -6388,7 +6472,7 @@ ...@@ -6388,7 +6472,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 127 "__id__": 129
}, },
"asset": { "asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a" "__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...@@ -6401,20 +6485,20 @@ ...@@ -6401,20 +6485,20 @@
"_name": "audio", "_name": "audio",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 127 "__id__": 129
}, },
"_children": [ "_children": [
{ {
"__id__": 139 "__id__": 141
}, },
{ {
"__id__": 142 "__id__": 144
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [],
"_prefab": { "_prefab": {
"__id__": 145 "__id__": 147
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -6468,17 +6552,17 @@ ...@@ -6468,17 +6552,17 @@
"_name": "enter", "_name": "enter",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 138 "__id__": 140
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 140 "__id__": 142
} }
], ],
"_prefab": { "_prefab": {
"__id__": 141 "__id__": 143
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -6532,7 +6616,7 @@ ...@@ -6532,7 +6616,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 139 "__id__": 141
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6549,7 +6633,7 @@ ...@@ -6549,7 +6633,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 127 "__id__": 129
}, },
"asset": { "asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a" "__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...@@ -6562,17 +6646,17 @@ ...@@ -6562,17 +6646,17 @@
"_name": "leave", "_name": "leave",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 138 "__id__": 140
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 143 "__id__": 145
} }
], ],
"_prefab": { "_prefab": {
"__id__": 144 "__id__": 146
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -6626,7 +6710,7 @@ ...@@ -6626,7 +6710,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 142 "__id__": 144
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6643,7 +6727,7 @@ ...@@ -6643,7 +6727,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 127 "__id__": 129
}, },
"asset": { "asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a" "__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...@@ -6654,7 +6738,7 @@ ...@@ -6654,7 +6738,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 127 "__id__": 129
}, },
"asset": { "asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a" "__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...@@ -6667,7 +6751,7 @@ ...@@ -6667,7 +6751,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 127 "__id__": 129
}, },
"_enabled": true, "_enabled": true,
"startPosition": { "startPosition": {
...@@ -6686,7 +6770,7 @@ ...@@ -6686,7 +6770,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 127 "__id__": 129
}, },
"asset": { "asset": {
"__uuid__": "57753175-db68-4aab-a973-8abce1f1664a" "__uuid__": "57753175-db68-4aab-a973-8abce1f1664a"
...@@ -6747,7 +6831,7 @@ ...@@ -6747,7 +6831,7 @@
}, },
"_enabled": true, "_enabled": true,
"ani_flower": { "ani_flower": {
"__id__": 96 "__id__": 98
}, },
"layout_card": { "layout_card": {
"__id__": 35 "__id__": 35
......
...@@ -278,7 +278,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -278,7 +278,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
this.onTouchCheckCantouch = false; this.onTouchCheckCantouch = false;
}) })
}, 500); }, 2000);
} }
updateCardResult() { updateCardResult() {
return new Promise((res, rej) => { return new Promise((res, rej) => {
...@@ -346,6 +346,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -346,6 +346,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.view.find(this.layout_lollipop, 'progressbar_highlight').active = false; pg.view.find(this.layout_lollipop, 'progressbar_highlight').active = false;
let texts = pg.view.find(this.layout_lollipop, 'texts') let texts = pg.view.find(this.layout_lollipop, 'texts')
pg.audio.playAudioByNode(pg.view.find(texts, 'audio'))
texts.active = true; texts.active = true;
let complate = texts.getChildByName("complate"); let complate = texts.getChildByName("complate");
......
...@@ -481,6 +481,15 @@ let pg = { ...@@ -481,6 +481,15 @@ let pg = {
}); });
}); });
}, },
playAudioByNode(node) {
const audio = node.getComponent(cc.AudioSource);
return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, false);
cc.audioEngine.setFinishCallback(id, () => {
resolve(id);
});
})
},
stopAudio(audioId) { stopAudio(audioId) {
if (!audioId) return; if (!audioId) return;
cc.audioEngine.stopEffect(audioId); cc.audioEngine.stopEffect(audioId);
......
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