Commit 9b2b5366 authored by Tt's avatar Tt

不播放bgm

parent fb0b1202
...@@ -998,6 +998,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -998,6 +998,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.audioEngine.playMusic(this.bgmNode.getComponent(cc.AudioSource).clip, true); cc.audioEngine.playMusic(this.bgmNode.getComponent(cc.AudioSource).clip, true);
} }
playBgmP100() { playBgmP100() {
if (1) return;
let vol = cc.audioEngine.getMusicVolume(); let vol = cc.audioEngine.getMusicVolume();
if (vol > 0.9 * this.bgmNum) return; if (vol > 0.9 * this.bgmNum) return;
this.scheduleOnce(() => { this.scheduleOnce(() => {
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 50, "width": 100,
"height": 40, "height": 80,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_return": { "btn_return": {
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 50, "width": 100,
"height": 40, "height": 80,
"rawWidth": 50, "rawWidth": 100,
"rawHeight": 40, "rawHeight": 80,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
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