Commit 9ac7787f authored by liujiangnan's avatar liujiangnan

debug

parent 212a710b
...@@ -281,9 +281,16 @@ cc.Class({ ...@@ -281,9 +281,16 @@ cc.Class({
// cc.director.getScene().destroy(); // cc.director.getScene().destroy();
cc.audioEngine.stopAll(); cc.audioEngine.stopAll();
window.courseware.freeAllOcMethod(); window.courseware.freeAllOcMethod();
cc.director.loadScene("debug_shell", null, null, (err, scene) => { try {
cc.director.loadScene("debug_shell", null, null, (err, scene) => {
}); if(err){
console.error("=====场景加载出现错误=====");
console.error(err);
}
});
} catch (error) {
cc.director.loadScene("middleLayer", null, null, (err, scene) => {});
}
}) })
.start(); .start();
}); });
......
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