Commit bb13d393 authored by liujiangnan's avatar liujiangnan

feat: 功能实现

parent 6610f190
...@@ -78,10 +78,10 @@ ...@@ -78,10 +78,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 417 "__id__": 418
}, },
{ {
"__id__": 418 "__id__": 419
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -244,14 +244,14 @@ ...@@ -244,14 +244,14 @@
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 414
},
{ {
"__id__": 415 "__id__": 415
}, },
{ {
"__id__": 416 "__id__": 416
},
{
"__id__": 417
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 413 "__id__": 414
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -17313,6 +17313,9 @@ ...@@ -17313,6 +17313,9 @@
}, },
{ {
"__id__": 412 "__id__": 412
},
{
"__id__": 413
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -17437,6 +17440,76 @@ ...@@ -17437,6 +17440,76 @@
"customAttributeStrArr": [], "customAttributeStrArr": [],
"_id": "92na9emSxEq4sJX4n2jZ6/" "_id": "92na9emSxEq4sJX4n2jZ6/"
}, },
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 409
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 409
},
"_id": "e3wAmPzt9BlYvBCfveIBBT"
},
{ {
"__type__": "8d79deWXmhBy7QSSjlRnsfL", "__type__": "8d79deWXmhBy7QSSjlRnsfL",
"_name": "", "_name": "",
......
This diff is collapsed.
...@@ -87,7 +87,7 @@ export class MyCocosSceneComponent extends cc.Component { ...@@ -87,7 +87,7 @@ export class MyCocosSceneComponent extends cc.Component {
preload() { preload() {
const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList); const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList);
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => { cc.assetManager.loadAny(preloadArr, null, null, async (err, data) => {
if (window && window["air"]) { if (window && window["air"]) {
// window["air"].onCourseInScreen = (next) => { // window["air"].onCourseInScreen = (next) => {
...@@ -95,7 +95,7 @@ export class MyCocosSceneComponent extends cc.Component { ...@@ -95,7 +95,7 @@ export class MyCocosSceneComponent extends cc.Component {
// this.onLoadEnd(); // this.onLoadEnd();
// next(); // next();
// }; // };
this.onLoadEnd(); await this.onLoadEnd();
window["air"].hideAirClassLoading(); window["air"].hideAirClassLoading();
} else { } else {
this.onLoadEnd(); this.onLoadEnd();
......
export const defaultData = {
"pic_url": "http://staging-teach.cdn.ireadabc.com/ed94332a503c31e0908bd4c6923a2665.png",
"pic_url_2": "http://staging-teach.cdn.ireadabc.com/5fb60317ade0195d35ad8034d5370a7f.png",
"text": "This is a test label.",
"audio_url": "http://staging-teach.cdn.ireadabc.com/f47f1d7b5c160fe1c59500d180346240.mp3"
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "8b6718a7-4616-4fef-aa42-bd17ddde91fc",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
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