Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FT_12
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
FT_12
Commits
1cb73eba
Commit
1cb73eba
authored
Jan 28, 2021
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
骨骼和音频都播放完成之后才判断结束
parent
a9937027
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
ItemAnswer.js
play/assets/tmpGame/script/ItemAnswer.js
+12
-1
No files found.
play/assets/tmpGame/script/ItemAnswer.js
View file @
1cb73eba
...
@@ -252,6 +252,14 @@ cc.Class({
...
@@ -252,6 +252,14 @@ cc.Class({
playLabelGreen
(
cb
)
{
playLabelGreen
(
cb
)
{
this
.
dragonBone
.
playAnimation
(
this
.
animationName
,
1
);
this
.
dragonBone
.
playAnimation
(
this
.
animationName
,
1
);
let
dragonbonesDone
=
false
;
let
audioDone
=
false
;
this
.
dragonBone
.
once
(
dragonBones
.
EventObject
.
COMPLETE
,()
=>
{
dragonbonesDone
=
true
;
if
(
audioDone
){
cb
&&
cb
();
}
});
this
.
playAudioOption
((
duration
)
=>
{
this
.
playAudioOption
((
duration
)
=>
{
if
(
!
cc
.
isValid
(
this
)){
if
(
!
cc
.
isValid
(
this
)){
return
;
return
;
...
@@ -275,7 +283,10 @@ cc.Class({
...
@@ -275,7 +283,10 @@ cc.Class({
this
.
unschedule
(
this
.
changeAudioSpfCb
)
this
.
unschedule
(
this
.
changeAudioSpfCb
)
this
.
sprAudio
.
spriteFrame
=
this
.
spfAudioOn
;
this
.
sprAudio
.
spriteFrame
=
this
.
spfAudioOn
;
GameData
.
isAudio
=
false
;
GameData
.
isAudio
=
false
;
cb
&&
cb
();
audioDone
=
true
;
if
(
dragonbonesDone
){
cb
&&
cb
();
}
});
});
},
},
playLabelGreenCb
()
{
playLabelGreenCb
()
{
...
...
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