Commit b5584299 authored by liujiangnan's avatar liujiangnan

feat: 中间层

parent 9ac7787f
......@@ -281,15 +281,12 @@ cc.Class({
// cc.director.getScene().destroy();
cc.audioEngine.stopAll();
window.courseware.freeAllOcMethod();
try {
cc.director.loadScene("debug_shell", null, null, (err, scene) => {
if(err){
console.error("=====场景加载出现错误=====");
console.error(err);
}
const flag = cc.director.loadScene("debug_shell", null, null, (err, scene) => {
});
if(!flag){
// 没有壳的情况下,直接加载中间层场景
cc.director.loadScene("middleLayer_for_debug", null, null, (err, scene) => {
});
} catch (error) {
cc.director.loadScene("middleLayer", null, null, (err, scene) => {});
}
})
.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