Commit 74cb7a1f authored by 智慧's avatar 智慧

fix:解决与加载没有资源的问题

parent c9aebcc2
......@@ -84,7 +84,7 @@ cc.Class({
getDefaultData() {
// const dataJson = '{"animationName":"Greetings"}'
// const dataJson = '{"animationName":"WarmUp"}'
const dataJson = '{"animationName":"WarmUp"}'
// const dataJson = '{"animationName":"LettersInLife"}'
// const dataJson = '{"animationName":"Phonics"}'
// const dataJson = '{"animationName":"LetsBlend"}'
......@@ -95,7 +95,7 @@ cc.Class({
// const dataJson = '{"animationName":"SightWords"}'
// const dataJson = '{"animationName":"StoryTime"}'
// const dataJson = '{"animationName":"Topic"}'
const dataJson = '{"animationName":"ReadClosely"}'
// const dataJson = '{"animationName":"ReadClosely"}'
const data = JSON.parse(dataJson);
return data;
},
......@@ -124,7 +124,6 @@ cc.Class({
const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList);
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
this.loadEnd();
if (window && window["air"]) {
window["air"].hideAirClassLoading();
......@@ -132,6 +131,9 @@ cc.Class({
cc.debug.setDisplayStats(false);
});
if (window && window["air"]) {
window["air"].hideAirClassLoading();
}
},
......
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