Commit 62258fdb authored by huoshizhe's avatar huoshizhe

feat: getData

parent 57537ce9
......@@ -300,12 +300,21 @@ cc.Class({
getData(func) {
if (window && window.courseware) {
window.courseware.getData(func, 'Z_05_nxuan1');
} else {
func(defaultData);
window.courseware.getData(func, 'scene');
return;
}
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.getData(func);
return;
}
func(this.getDefaultData());
},
_imageResList: null,
_audioResList: null,
preloadItem() {
......
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