Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
anim_insert_ques
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
anim_insert_ques
Commits
e84113da
Commit
e84113da
authored
Apr 19, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 只有一个动画不播
parent
6fd8b76c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
anim_insert_ques.ts
assets/anim_insert_ques/scene/anim_insert_ques.ts
+11
-11
No files found.
assets/anim_insert_ques/scene/anim_insert_ques.ts
View file @
e84113da
...
...
@@ -153,23 +153,23 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
getJumpFrame
()
{
const
maxDisFrame
=
this
.
data
.
frame
*
2
;
const
arr
=
this
.
data
.
stepArr
;
let
disFrame
=
0
;
if
(
arr
.
length
<=
1
)
{
return
maxDisFrame
;
}
let
disFrame
=
maxDisFrame
;
for
(
let
i
=
1
;
i
<
arr
.
length
;
i
++
)
{
const
curDis
=
arr
[
i
].
text
-
arr
[
i
-
1
].
text
;
if
(
!
disFrame
||
disFrame
>
curDis
)
{
const
curDis
=
(
arr
[
i
].
text
-
arr
[
i
-
1
].
text
)
/
2
;
if
(
disFrame
>
curDis
)
{
disFrame
=
curDis
;
}
}
disFrame
/=
2
;
const
maxDisFrame
=
this
.
data
.
frame
*
2
;
if
(
disFrame
>
maxDisFrame
)
{
disFrame
=
maxDisFrame
}
return
disFrame
;
}
...
...
@@ -521,7 +521,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
})
dragonDisplay
.
on
(
dragonBones
.
EventObject
.
COMPLETE
,
(
e
)
=>
{
if
(
this
.
isLast
)
{
if
(
this
.
isLast
&&
this
.
playTimes
>
0
)
{
this
.
showGoodjob
();
}
else
{
this
.
animPlayEnd
();
...
...
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