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

fix: 闪屏

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