Commit 0fdb58bc authored by 范雪寒's avatar 范雪寒
parents 98db1f4d e881f878
......@@ -48,11 +48,13 @@ cc.Class({
this.preloadCount = 0;
this.loadedCount = 0;
initAir(this);
// if (!window.preloadBundleAndSourcesFlag) {
// // 只加载一次就行了
// window.preloadBundleAndSourcesFlag = true;
// }
if (!window.preloadBundleAndSourcesFlag) {
// 只加载一次就行了
window.preloadBundleAndSourcesFlag = true;
cc.find("middleLayer/ui/ProgressLabel").active = true;
cc.find('middleLayer/ui/loadingProgress').active = true;
this.preloadAll();
}
},
start() {
......@@ -109,19 +111,8 @@ cc.Class({
batchPreloadScene(scenes = []) {
const expects = [
// 'op_09', 'OP05',
// 'OP_03', 'op_01',
// 'LWD_3', 'op_07',
// 'op_02', 'OP_08',
// 'op_06_1', 'OP10',
'op_09_plus',
// 'OP11',
'OP10_online',
// 'OP12',
// 'OP13', 'OP_03_1',
// 'OSMO_01', 'OP15',
// 'OPW25', 'OP_03_2',
// 'op_06_2', 'OP_06_3',
// 'op_09_plus',
// 'OP10_online',
];
const _this = this;
let i = 0;
......@@ -280,9 +271,11 @@ cc.Class({
const BtnLoad = cc.find('middleLayer/ui/BtnLoad');
BtnLoad.on('click', () => {
cc.find("middleLayer/ui/ProgressLabel").active = true;
cc.find('middleLayer/ui/loadingProgress').active = true;
this.preloadAll();
this.preloadCount = 0;
this.loadedCount = 0;
cc.find("middleLayer/ui/ProgressLabel").active = true;
cc.find('middleLayer/ui/loadingProgress').active = true;
this.preloadAll();
});
const btnClose = cc.find('middleLayer/ConsoleNode/BtnClose');
......
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