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