Commit e23f17d9 authored by Tt's avatar Tt

重新播放bgm测试

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