Commit 47e112ce authored by 范雪寒's avatar 范雪寒
parents aa3ea35a d18b4c69
...@@ -48,13 +48,13 @@ cc.Class({ ...@@ -48,13 +48,13 @@ cc.Class({
this.preloadCount = 0; this.preloadCount = 0;
this.loadedCount = 0; this.loadedCount = 0;
initAir(this); initAir(this);
if (!window.preloadBundleAndSourcesFlag) { // if (!window.preloadBundleAndSourcesFlag) {
// 只加载一次就行了 // // 只加载一次就行了
window.preloadBundleAndSourcesFlag = true; // window.preloadBundleAndSourcesFlag = true;
cc.find("middleLayer/ui/ProgressLabel").active = true; // cc.find("middleLayer/ui/ProgressLabel").active = true;
this.preloadBundle(); // this.preloadBundle();
this.preloadSource(); // this.preloadSource();
} // }
}, },
start() { start() {
...@@ -391,12 +391,13 @@ cc.Class({ ...@@ -391,12 +391,13 @@ cc.Class({
if (err) { if (err) {
this.asyncDelayLog('err: ', err); this.asyncDelayLog('err: ', err);
} }
this.hideWaitingLetters();
cc.audioEngine.stopAll(); cc.audioEngine.stopAll();
cc.director.runScene(scene, null, () => { cc.director.runScene(scene, null, () => {
console.log('sceneName = ' + sceneName); console.log('sceneName = ' + sceneName);
const Canvas = cc.find('Canvas'); const Canvas = cc.find('Canvas');
const middleLayer = cc.find('middleLayer'); const middleLayer = cc.find('middleLayer');
cc.find('middleLayer/ExitBtn').active = true;
this.hideWaitingLetters();
middleLayer.scale = Canvas.width / middleLayer.width; middleLayer.scale = Canvas.width / middleLayer.width;
}); });
}); });
......
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