Commit 31ef4a03 authored by liujiangnan's avatar liujiangnan

debug

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