Commit 616ef6aa authored by liujiangnan's avatar liujiangnan

feat

parent b6d778ae
......@@ -185,7 +185,7 @@ export abstract class middleLayerBase extends cc.Component {
this.currentBundleInfo = { sceneName, version, bondleUrl };
console.log("[middleLayer_for_NJ_lite]-[loadBundle] currentBundleInfo=", JSON.stringify(this.currentBundleInfo))
this.showWaitingLetters();
cc.audioEngine.stopAll();
const oldSceneName = this.currentBundleInfo?.sceneName;
const engineInfo = await this.getEngineInfo();
const { isChanged } = JSON.parse(engineInfo);
......@@ -195,7 +195,6 @@ export abstract class middleLayerBase extends cc.Component {
cc.assetManager.loadBundle(bondleUrl, { version: version }, async (err, bundle) => {
bundle.loadScene(sceneName, null, null, (err, scene) => {
cc.audioEngine.stopAll();
this.loadBundleLock = false; // 加载完成 解锁
let bufferedLoadBundle = this.getLoadBundleFromBuffer();
if(bufferedLoadBundle) {
......
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