Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
et_01
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
et_01
Commits
db7fd314
Commit
db7fd314
authored
Mar 08, 2021
by
智慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:将龙骨动画全部设置为active true
parent
4a172ba5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
23 deletions
+14
-23
et_01.fire
play/assets/et_01/scene/et_01.fire
+14
-14
et_01.js
play/assets/et_01/script/et_01.js
+0
-9
No files found.
play/assets/et_01/scene/et_01.fire
View file @
db7fd314
...
...
@@ -213,7 +213,7 @@
"array": [
0,
0,
47
5.4312900091213
,
47
6.30044043450715
,
0,
0,
0,
...
...
@@ -659,7 +659,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 15
...
...
@@ -761,7 +761,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 17
...
...
@@ -863,7 +863,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 19
...
...
@@ -965,7 +965,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 21
...
...
@@ -1067,7 +1067,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 23
...
...
@@ -1169,7 +1169,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 25
...
...
@@ -1271,7 +1271,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 27
...
...
@@ -1373,7 +1373,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 29
...
...
@@ -1475,7 +1475,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 31
...
...
@@ -1577,7 +1577,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 33
...
...
@@ -1679,7 +1679,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 35
...
...
@@ -1781,7 +1781,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 37
...
...
@@ -1883,7 +1883,7 @@
"__id__": 2
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 39
...
...
play/assets/et_01/script/et_01.js
View file @
db7fd314
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment