Commit c678534b authored by 范雪寒's avatar 范雪寒

fix: 闪屏

parent aaea01a4
...@@ -168,14 +168,16 @@ cc.Class({ ...@@ -168,14 +168,16 @@ cc.Class({
this.log("preload"); this.log("preload");
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => { cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
if (window && window["air"]) { if (window && window["air"]) {
cc.find("Canvas").opacity = 0; // cc.find("Canvas").opacity = 0;
window.air.onCourseInScreen = (next) => { // window.air.onCourseInScreen = (next) => {
cc.find("Canvas").opacity = 255; // cc.find("Canvas").opacity = 255;
this.log("loadEnd1"); // this.log("loadEnd1");
this.loadEnd(); // this.loadEnd();
next(); // next();
}; // };
window.air.hideAirClassLoading(); // window.air.hideAirClassLoading();
this.onLoadEnd();
window["air"].hideAirClassLoading();
} else { } else {
this.log("loadEnd2"); this.log("loadEnd2");
this.loadEnd(); this.loadEnd();
......
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