Commit de4fa21b authored by liujiangnan's avatar liujiangnan

debug

parent e81fbc95
......@@ -173,14 +173,30 @@ export default class NewClass extends middleLayerBase {
}
cc.assetManager.loadBundle(scene.bondleUrl, { version: scene.version }, (err, bundle) => {
console.log(`${scene.bondleUrl}---场景开始loadBundle----`);
_this.loadedCount++;
_this.updateProcessBar();
i++;
if (i < scenes.length) {
setTimeout(() => {
load();
}, 1);
if (!bundle) {
_this.loadedCount++;
_this.updateProcessBar();
i++;
if (i < scenes.length) {
setTimeout(() => {
load();
}, 1);
}
return;
}
// 用于测试多个模板是否冲突
// bundle.preloadScene(scene.sceneName, () => { }, () => {
// console.log(`${scene.sceneName}场景预加载结束`);
// _this.loadedCount++;
// _this.updateProcessBar();
// i++;
// if (i < scenes.length) {
// setTimeout(() => {
// load();
// }, 1);
// }
// });
});
}
......
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