Commit 31ef4a03 authored by liujiangnan's avatar liujiangnan

debug

parent 4b922ac7
...@@ -294,24 +294,14 @@ cc.Class({ ...@@ -294,24 +294,14 @@ cc.Class({
loadBundle(sceneName, version, bondleUrl) { loadBundle(sceneName, version, bondleUrl) {
cc.assetManager.loadBundle(bondleUrl, { version: version }, async (err, bundle) => { cc.assetManager.loadBundle(bondleUrl, { version: version }, async (err, bundle) => {
if (err) { if (err) {
this.log(err);
this.showLog("11111");
return this.asyncDelayLog(err); return this.asyncDelayLog(err);
} }
bundle.loadScene(sceneName, (err, scene) => { bundle.loadScene(sceneName, (err, scene) => {
if (err) { if (err) {
this.log(err);
this.showLog("22222");
this.asyncDelayLog('err: ', err); this.asyncDelayLog('err: ', err);
} }
this.hideWaitingLetters(); this.hideWaitingLetters();
try {
this.showLog("4444");
cc.director.runScene(scene); cc.director.runScene(scene);
} catch (error) {
this.showLog("3333");
this.log(error);
}
}); });
}); });
}, },
......
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