Commit a95e1293 authored by liujiangnan's avatar liujiangnan

debug

parent f648c2d5
...@@ -295,17 +295,20 @@ cc.Class({ ...@@ -295,17 +295,20 @@ cc.Class({
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.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.log(err);
this.showLog("22222");
this.asyncDelayLog('err: ', err); this.asyncDelayLog('err: ', err);
} }
this.hideWaitingLetters(); this.hideWaitingLetters();
try { try {
cc.director.runScene(scene); cc.director.runScene(scene);
} catch (error) { } catch (error) {
this.showLog("3333");
this.log(error); 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