Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cc_mz_write_02
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_write_02
Commits
c2548bc9
Commit
c2548bc9
authored
Oct 24, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
9388f955
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
cc_mz_write_02.js
assets/cc_mz_write_02/scene/cc_mz_write_02.js
+9
-8
No files found.
assets/cc_mz_write_02/scene/cc_mz_write_02.js
View file @
c2548bc9
...
@@ -587,15 +587,15 @@ cc.Class({
...
@@ -587,15 +587,15 @@ cc.Class({
if
(
this
.
isCanDraw
)
{
//
if (this.isCanDraw) {
return
;
//
return;
}
//
}
this
.
isCanDraw
=
true
;
//
this.isCanDraw = true;
delayCall
(
0.3
,
()
=>
{
//
delayCall(0.3, () => {
this
.
isCanDraw
=
false
;
//
this.isCanDraw = false;
})
//
})
this
.
debugDrawLayer
.
removeAllChildren
();
this
.
debugDrawLayer
.
removeAllChildren
();
...
@@ -4549,13 +4549,14 @@ cc.Class({
...
@@ -4549,13 +4549,14 @@ cc.Class({
armatureNames
.
push
(
armatures
[
i
].
name
);
armatureNames
.
push
(
armatures
[
i
].
name
);
}
}
// console.log('armatureNames: ', armatureNames);
// console.log('armatureNames: ', armatureNames);
let
animationNames
=
[];
if
(
armatureNames
.
length
>
0
)
{
if
(
armatureNames
.
length
>
0
)
{
let
defaultArmatureName
=
armatureNames
[
0
];
let
defaultArmatureName
=
armatureNames
[
0
];
dragonDisplay
.
armatureName
=
defaultArmatureName
;
dragonDisplay
.
armatureName
=
defaultArmatureName
;
// let animationNames = dragonDisplay.getAnimationNames(defaultArmatureName);
// let animationNames = dragonDisplay.getAnimationNames(defaultArmatureName);
let
defaultArmature
=
armatures
[
0
];
let
defaultArmature
=
armatures
[
0
];
let
animations
=
defaultArmature
.
animation
;
let
animations
=
defaultArmature
.
animation
;
let
animationNames
=
[];
for
(
let
i
=
0
;
i
<
animations
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
animations
.
length
;
i
++
)
{
animationNames
.
push
(
animations
[
i
].
name
);
animationNames
.
push
(
animations
[
i
].
name
);
}
}
...
...
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