Commit 0c3f1ae8 authored by 范雪寒's avatar 范雪寒

feat:

parent af9dfdb5
......@@ -47,15 +47,10 @@ cc.Class({
if (err) {
return this.asyncDelayLog(err);
}
bundle.loadScene(configData.sceneName, null, null, (err, scene) => {
if (err) {
this.asyncDelayLog('err: ', err);
}
const canvas = cc.find('Canvas');
canvas.emit('MIDDLE_LAYER_LOADED', { scene });
globalThis.SCENE_INFO = scene
// 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