Commit e9cae261 authored by liujiangnan's avatar liujiangnan

debug

parent 24d7b1bb
......@@ -116,7 +116,8 @@ cc.Class({
// 'op_06_1', 'OP10',
'op_09_plus',
// 'OP11',
'OP10_online', 'OP12',
'OP10_online',
'OP12',
'OP13', 'OP_03_1',
'OSMO_01', 'OP15',
'OPW25', 'OP_03_2',
......@@ -139,6 +140,18 @@ cc.Class({
}
cc.assetManager.loadBundle(scene.bondleUrl, { version: scene.version }, (err, bundle) => {
console.log(`${scene.bondleUrl}---场景开始loadBundle----`);
if(!bundle){
console.log(err);
_this.loadedCount++;
_this.updateProcessBar();
i++;
if (i < scenes.length) {
setTimeout(() => {
load();
}, 1);
}
return;
}
bundle.preloadScene(scene.sceneName, () => { }, () => {
console.log(`${scene.sceneName}场景预加载结束`);
_this.loadedCount++;
......
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