Commit e23f17d9 authored by Tt's avatar Tt

重新播放bgm测试

parent f8ba5ef3
......@@ -1571,8 +1571,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1020,
"height": 60
"width": 1250,
"height": 120
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1584,7 +1584,7 @@
"ctor": "Float64Array",
"array": [
0,
343.603,
337.604,
0,
0,
0,
......@@ -1637,7 +1637,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 920,
"width": 1150,
"height": 126
},
"_anchorPoint": {
......@@ -1818,7 +1818,7 @@
"_dstBlendFactor": 771,
"_string": "题目:请参照图片移动下方按钮,组成完整的一句话",
"_N$string": "题目:请参照图片移动下方按钮,组成完整的一句话",
"_fontSize": 40,
"_fontSize": 50,
"_lineHeight": 100,
"_enableWrapText": true,
"_N$file": {
......@@ -1846,8 +1846,8 @@
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 1020,
"height": 60
"width": 1250,
"height": 120
},
"_resize": 1,
"_N$layoutType": 1,
......@@ -1881,7 +1881,7 @@
"_alignFlags": 1,
"_left": 0,
"_right": 0,
"_top": 16.39699999999999,
"_top": -7.603999999999985,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......
......@@ -941,10 +941,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
}, 0.4)
}
pauseBgm() {
cc.audioEngine.pauseMusic();
// cc.audioEngine.pauseMusic();
cc.audioEngine.stopMusic();
}
resumeBgm() {
cc.audioEngine.resumeMusic();
// cc.audioEngine.resumeMusic();
cc.audioEngine.playMusic(this.bgmNode.getComponent(cc.AudioSource).clip, true);
}
playBgmP100() {
this.scheduleOnce(() => {
......
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