Commit 6e06d4f1 authored by liujiangnan's avatar liujiangnan

fix

parent 41b4a23f
...@@ -107,14 +107,14 @@ ...@@ -107,14 +107,14 @@
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 144
},
{ {
"__id__": 145 "__id__": 145
}, },
{ {
"__id__": 146 "__id__": 146
},
{
"__id__": 147
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6519,15 +6519,77 @@ ...@@ -6519,15 +6519,77 @@
"_children": [ "_children": [
{ {
"__id__": 138 "__id__": 138
}
],
"_active": false,
"_components": [],
"_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": [
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": "188jFx8h5FI5fvRlBc5Rvm"
},
{
"__type__": "cc.Node",
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 137
},
"_children": [
{
"__id__": 139
}, },
{ {
"__id__": 140 "__id__": 141
}, },
{ {
"__id__": 142 "__id__": 143
} }
], ],
"_active": false, "_active": true,
"_components": [], "_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
...@@ -6575,20 +6637,20 @@ ...@@ -6575,20 +6637,20 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "188jFx8h5FI5fvRlBc5Rvm" "_id": "a0sv861GVFJo/+fI5k9Z35"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "upload", "_name": "upload",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 137 "__id__": 138
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 139 "__id__": 140
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6644,7 +6706,7 @@ ...@@ -6644,7 +6706,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 138 "__id__": 139
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6663,13 +6725,13 @@ ...@@ -6663,13 +6725,13 @@
"_name": "picload", "_name": "picload",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 137 "__id__": 138
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 141 "__id__": 142
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6725,7 +6787,7 @@ ...@@ -6725,7 +6787,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 140 "__id__": 141
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6744,13 +6806,13 @@ ...@@ -6744,13 +6806,13 @@
"_name": "success", "_name": "success",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 137 "__id__": 138
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 143 "__id__": 144
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6806,7 +6868,7 @@ ...@@ -6806,7 +6868,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 142 "__id__": 143
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
......
...@@ -618,6 +618,11 @@ cc.Class({ ...@@ -618,6 +618,11 @@ cc.Class({
} }
}); });
}, },
playLocalAudio(audioName) {
cc.audioEngine.stopAll();
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
cc.audioEngine.playEffect(audio.clip, false);
},
// called every frame // called every frame
......
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