Commit db7fd314 authored by 智慧's avatar 智慧

feat:将龙骨动画全部设置为active true

parent 4a172ba5
......@@ -213,7 +213,7 @@
"array": [
0,
0,
475.4312900091213,
476.30044043450715,
0,
0,
0,
......@@ -659,7 +659,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 15
......@@ -761,7 +761,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 17
......@@ -863,7 +863,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 19
......@@ -965,7 +965,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 21
......@@ -1067,7 +1067,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 23
......@@ -1169,7 +1169,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 25
......@@ -1271,7 +1271,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 27
......@@ -1373,7 +1373,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 29
......@@ -1475,7 +1475,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 31
......@@ -1577,7 +1577,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 33
......@@ -1679,7 +1679,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 35
......@@ -1781,7 +1781,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 37
......@@ -1883,7 +1883,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 39
......
......@@ -180,20 +180,11 @@ cc.Class({
},
initBtn() {
this.hideDragon();
this.showDragon();
},
hideDragon() {
this._dragonAnimaList.forEach(dragon => {
const nodeName = 'Canvas/' + dragon;
const animationNode = cc.find(nodeName);
animationNode.active = false;
});
},
async showDragon() {
const nodeName = 'Canvas/' + this.data.animationName;
const animationNode = cc.find(nodeName);
animationNode.active = true;
animationNode.x = cc.find('Canvas').width;
animationNode.y = 0;
......
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