Commit 08447689 authored by liujiangnan's avatar liujiangnan

feat: 调试打包

parent 103fe608
......@@ -266,7 +266,7 @@
"__id__": 455
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 497
......
......@@ -48,6 +48,18 @@ cc.Class({
return this.asyncDelayLog(err);
}
// 方便Debug壳的打包
const isDebug = cc.find('Canvas/MainScene').active === false;
if(isDebug){
// 如果没有牛津的主界面,就显示debug的界面,方便调试
bundle.loadScene(configData.sceneName, null, null, (e, scene) => {
if (e) {
return this.asyncDelayLog(e);
}
cc.director.runScene(scene);
});
}
const canvas = cc.find('Canvas');
canvas.emit('MIDDLE_LAYER_LOADED', { scene: null });
globalThis.configData = configData;
......
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