Commit 41731e61 authored by 智慧's avatar 智慧

feat:删除无用代码

parent 1e883503
...@@ -659,7 +659,7 @@ ...@@ -659,7 +659,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 15 "__id__": 15
...@@ -761,7 +761,7 @@ ...@@ -761,7 +761,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 17 "__id__": 17
...@@ -863,7 +863,7 @@ ...@@ -863,7 +863,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 19 "__id__": 19
...@@ -965,7 +965,7 @@ ...@@ -965,7 +965,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 21 "__id__": 21
...@@ -1067,7 +1067,7 @@ ...@@ -1067,7 +1067,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 23 "__id__": 23
...@@ -1169,7 +1169,7 @@ ...@@ -1169,7 +1169,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 25 "__id__": 25
...@@ -1271,7 +1271,7 @@ ...@@ -1271,7 +1271,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 27 "__id__": 27
...@@ -1373,7 +1373,7 @@ ...@@ -1373,7 +1373,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 29 "__id__": 29
...@@ -1475,7 +1475,7 @@ ...@@ -1475,7 +1475,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 31 "__id__": 31
...@@ -1577,7 +1577,7 @@ ...@@ -1577,7 +1577,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 33 "__id__": 33
...@@ -1679,7 +1679,7 @@ ...@@ -1679,7 +1679,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 35 "__id__": 35
...@@ -1781,7 +1781,7 @@ ...@@ -1781,7 +1781,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 37 "__id__": 37
...@@ -1883,7 +1883,7 @@ ...@@ -1883,7 +1883,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 39 "__id__": 39
......
...@@ -84,8 +84,8 @@ cc.Class({ ...@@ -84,8 +84,8 @@ cc.Class({
getDefaultData() { getDefaultData() {
// const dataJson = '{"animationName":"DailyConversations"}' const dataJson = '{"animationName":"DailyConversations"}'
const dataJson = '{"animationName":"WarmUp"}' // const dataJson = '{"animationName":"WarmUp"}'
// const dataJson = '{"animationName":"LettersInLife"}' // const dataJson = '{"animationName":"LettersInLife"}'
// const dataJson = '{"animationName":"Phonics"}' // const dataJson = '{"animationName":"Phonics"}'
// const dataJson = '{"animationName":"LetsBlend"}' // const dataJson = '{"animationName":"LetsBlend"}'
...@@ -125,6 +125,7 @@ cc.Class({ ...@@ -125,6 +125,7 @@ cc.Class({
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, (err, data) => {
console.log('呵呵呵');
this.loadEnd(); this.loadEnd();
if (window && window["air"]) { if (window && window["air"]) {
window["air"].hideAirClassLoading(); window["air"].hideAirClassLoading();
...@@ -132,9 +133,6 @@ cc.Class({ ...@@ -132,9 +133,6 @@ cc.Class({
cc.debug.setDisplayStats(false); cc.debug.setDisplayStats(false);
}); });
if (window && window["air"]) {
window["air"].hideAirClassLoading();
}
}, },
...@@ -148,10 +146,6 @@ cc.Class({ ...@@ -148,10 +146,6 @@ cc.Class({
initData() { initData() {
// 所有全局变量 默认都是null // 所有全局变量 默认都是null
this._cantouch = true; this._cantouch = true;
if (!this._dragonAnimaList) {
this._dragonAnimaList = ["DailyConversations","WarmUp","LettersInLife","Phonics","LetsBlend","ExerciseTime","TraceWithMe",
"LookAndSay","LetsReview","SightWords","StoryTime","Topic","ReadClosely"];
}
}, },
initAudio() { initAudio() {
...@@ -185,6 +179,7 @@ cc.Class({ ...@@ -185,6 +179,7 @@ cc.Class({
async showDragon() { async showDragon() {
const nodeName = 'Canvas/' + this.data.animationName; const nodeName = 'Canvas/' + this.data.animationName;
const animationNode = cc.find(nodeName); const animationNode = cc.find(nodeName);
animationNode.active = true;
var dragonDisplay = animationNode.getComponent(dragonBones.ArmatureDisplay); var dragonDisplay = animationNode.getComponent(dragonBones.ArmatureDisplay);
var animNameArr = dragonDisplay.getAnimationNames("armatureName"); var animNameArr = dragonDisplay.getAnimationNames("armatureName");
dragonDisplay.playAnimation(animNameArr[0], 1); dragonDisplay.playAnimation(animNameArr[0], 1);
......
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