Commit 22ce0a3b authored by 范雪寒's avatar 范雪寒

feat: onCourseInScreen

parent 21f4e3eb
...@@ -248,12 +248,14 @@ export function initDataMgr_NGT_02() { ...@@ -248,12 +248,14 @@ export function initDataMgr_NGT_02() {
preload() { preload() {
cc.assetManager.loadAny(null, null, null, (err, data) => { cc.assetManager.loadAny(null, null, null, (err, data) => {
//结束回调 window.air.onCourseInScreen = (next) => {
this.loadEnd(); //结束回调
this.loadEnd();
next();
}
if (window && window["air"]) { if (window && window["air"]) {
window["air"].hideAirClassLoading(); window["air"].hideAirClassLoading();
} }
cc.debug.setDisplayStats(false); cc.debug.setDisplayStats(false);
}); });
}, },
......
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