Commit 6d11b954 authored by liujiangnan's avatar liujiangnan

feat: 背景音效

parent be1ddd98
{
"ver": "2.0.1",
"uuid": "e16e2ad2-276a-495a-83d0-5b16756e02a6",
"uuid": "ec0e9fa8-dee4-4eee-acd9-16669f4d3803",
"downloadMode": 0,
"duration": 67.970612,
"subMetas": {}
......
{
"ver": "2.0.1",
"uuid": "cb0ee4c7-00bc-4d48-ae9c-497cec3eb4de",
"uuid": "37264922-9a58-4f96-aa14-7306886cc77b",
"downloadMode": 0,
"duration": 107.6657,
"subMetas": {}
......
{
"ver": "2.0.1",
"uuid": "5e0ccbca-213f-4395-9c14-99722e630f8c",
"uuid": "f79f19be-c44a-4890-bc22-e7ad64bcad98",
"downloadMode": 0,
"duration": 90.3614,
"subMetas": {}
......
{
"ver": "2.0.1",
"uuid": "cb3bc965-0fb2-4a72-aa15-9ccbb8543671",
"uuid": "d26e1773-3950-4a95-9dec-824aede147f8",
"downloadMode": 0,
"duration": 19.435102,
"duration": 170.0479,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "c0c9c038-f691-435b-897b-4135f26145ed",
"downloadMode": 0,
"duration": 160.839688,
"subMetas": {}
}
\ No newline at end of file
......@@ -17673,16 +17673,19 @@
"__id__": 402
},
"bgMusic1": {
"__uuid__": "cb3bc965-0fb2-4a72-aa15-9ccbb8543671"
"__uuid__": "ec0e9fa8-dee4-4eee-acd9-16669f4d3803"
},
"bgMusic2": {
"__uuid__": "e16e2ad2-276a-495a-83d0-5b16756e02a6"
"__uuid__": "37264922-9a58-4f96-aa14-7306886cc77b"
},
"bgMusic3": {
"__uuid__": "cb0ee4c7-00bc-4d48-ae9c-497cec3eb4de"
"__uuid__": "f79f19be-c44a-4890-bc22-e7ad64bcad98"
},
"bgMusic4": {
"__uuid__": "5e0ccbca-213f-4395-9c14-99722e630f8c"
"__uuid__": "d26e1773-3950-4a95-9dec-824aede147f8"
},
"bgMusic5": {
"__uuid__": "c0c9c038-f691-435b-897b-4135f26145ed"
},
"_id": "81fxhA6JRHm6B5tHECQZAH"
},
......
......@@ -26,6 +26,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
bgMusic3: cc.AudioClip = null;
@property(cc.AudioClip)
bgMusic4: cc.AudioClip = null;
@property(cc.AudioClip)
bgMusic5: cc.AudioClip = null;
tws: any[] = [];
gameMachineService: any = null;
......@@ -276,11 +278,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.UnitView.active = true;
if (pname == 'level 1') {
this.playBgMusic(this.bgMusic2);
this.playBgMusic(this.bgMusic1);
} else if (pname == 'level 2') {
this.playBgMusic(this.bgMusic3);
this.playBgMusic(this.bgMusic2);
} else if (pname == 'level 3') {
this.playBgMusic(this.bgMusic3);
} else if (pname == 'level 4') {
this.playBgMusic(this.bgMusic4);
} else if (pname == 'level 5') {
this.playBgMusic(this.bgMusic5);
}
......
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