Commit 86899210 authored by liujiangnan's avatar liujiangnan

fix: 音量大小

parent 29416e3c
......@@ -22,26 +22,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
async onLoadEnd() {
console.log('NJ_game_select 汪汪汪 1');
await this.initData();
console.log('NJ_game_select 汪汪汪 2');
this.updateView();
console.log('NJ_game_select 汪汪汪 3');
this.initListener();
console.log('NJ_game_select 汪汪汪 4');
if (this.step == 0) {
console.log('NJ_game_select 汪汪汪 5');
await this.startStep1();
} else {
console.log('NJ_game_select 汪汪汪 6');
await asyncDelay(1);
}
console.log('NJ_game_select 汪汪汪 7');
this.updateView();
console.log('NJ_game_select 汪汪汪 8');
await this.startStep2();
console.log('NJ_game_select 汪汪汪 9');
}
async startStep1() {
......
......@@ -165,7 +165,7 @@ export class MyCocosSceneComponent extends cc.Component {
playAudioByUrl(audio_url, cb = null) {
if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
const audioId = cc.audioEngine.play(audioClip, false, 1);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
......
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