Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cc_mz_007
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
cc_mz_007
Commits
725b46e5
Commit
725b46e5
authored
Feb 10, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
e11d14cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
25 deletions
+2
-25
cc_mz_007.js
assets/cc_mz_007/scene/cc_mz_007.js
+2
-25
No files found.
assets/cc_mz_007/scene/cc_mz_007.js
View file @
725b46e5
...
...
@@ -985,51 +985,28 @@ cc.Class({
for
(
let
i
=
0
;
i
<
armatures
.
length
;
i
++
)
{
armatureNames
.
push
(
armatures
[
i
].
name
);
}
this
.
log
(
'
汪汪汪3
'
+
JSON
.
stringify
(
armatureNames
));
await
asyncDelay
(
3
);
// console.log('armatureNames: ', armatureNames);
console
.
log
(
'
armatureNames:
'
,
armatureNames
);
if
(
armatureNames
.
length
>
0
)
{
this
.
log
(
'
汪汪汪4
'
);
await
asyncDelay
(
3
);
let
defaultArmatureName
=
armatureNames
[
0
];
this
.
log
(
'
汪汪汪4.1:
'
+
dragonDisplay
.
toString
());
await
asyncDelay
(
3
);
this
.
log
(
'
汪汪汪4.11:
'
+
defaultArmatureName
);
await
asyncDelay
(
3
);
this
.
log
(
'
汪汪汪4.12:
'
+
dragonDisplay
.
armatureName
);
await
asyncDelay
(
3
);
dragonDisplay
.
armatureName
=
defaultArmatureName
;
this
.
log
(
'
汪汪汪4.2:
'
+
dragonDisplay
.
armatureName
);
await
asyncDelay
(
3
);
// dragonDisplay.armatureName = defaultArmatureName;
// let animationNames = dragonDisplay.getAnimationNames(defaultArmatureName);
let
defaultArmature
=
armatures
[
0
];
this
.
log
(
'
汪汪汪4.3
'
);
await
asyncDelay
(
3
);
let
animations
=
defaultArmature
.
animation
;
let
animationNames
=
[];
this
.
log
(
'
汪汪汪4.4
'
);
await
asyncDelay
(
3
);
for
(
let
i
=
0
;
i
<
animations
.
length
;
i
++
)
{
animationNames
.
push
(
animations
[
i
].
name
);
}
this
.
log
(
'
汪汪汪4.5
'
);
await
asyncDelay
(
3
);
console
.
log
(
'
animationNames:
'
,
animationNames
.
toString
())
dragonDisplay
.
playAnimation
(
'
normal
'
,
-
1
);
dragonDisplay
.
animaNames
=
animationNames
;
animaNode
.
y
-=
30
;
this
.
log
(
'
汪汪汪5
'
);
await
asyncDelay
(
3
);
if
(
animaNode
.
height
)
{
animaNode
.
scale
=
376
/
animaNode
.
height
;
}
}
await
asyncDelay
(
3
);
this
.
log
(
'
汪汪汪6
'
);
await
asyncDelay
(
3
);
});
});
});
...
...
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