Commit 73f2d3c5 authored by rockyl's avatar rockyl

修复

parent 9dbc3a99
......@@ -341,7 +341,9 @@ export class GameStage extends Node {
if (assetsToLoad.length > 0) {
await this.showInnerLoadingView();
if(this._config.options.loadingView){
onPreloadAssetsComplete && onPreloadAssetsComplete();
}
await loadAssetsGroups({
preload: assetsToLoad,
}, async () => {
......@@ -349,6 +351,9 @@ export class GameStage extends Node {
}, async () => {
this.hideInnerLoadingView();
});
if(!this._config.options.loadingView){
onPreloadAssetsComplete && onPreloadAssetsComplete();
}
}
} else {
total = assetsToLoad.length;
......
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