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

feat:删除无用代码

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