Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
op_09
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
op_09
Commits
dd35ac94
Commit
dd35ac94
authored
Oct 10, 2022
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复读题时小猫不张嘴的问题
parent
a8b0ab68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
op_09.js
assets/op_09/scene/op_09.js
+15
-1
No files found.
assets/op_09/scene/op_09.js
View file @
dd35ac94
...
...
@@ -178,7 +178,8 @@ cc.Class({
jumpToQuestion
(
questionIdx
)
{
const
questionAudioUrl
=
this
.
data
.
question_arr
[
questionIdx
].
audio_url
;
this
.
playAudioByUrl
(
questionAudioUrl
);
this
.
coolCatSpeakQuestion
(
questionAudioUrl
)
// this.playAudioByUrl(questionAudioUrl);
const
box
=
cc
.
find
(
'
Canvas/bg/box
'
);
box
.
removeAllChildren
();
...
...
@@ -429,6 +430,19 @@ cc.Class({
},
coolCatSpeakQuestion
(
audioUrl
,
cb
)
{
if
(
audioUrl
)
{
const
cat
=
cc
.
find
(
'
Canvas/bg/catFrame/CoolCat
'
);
playDragonBoneAnimation
(
cat
,
'
begin
'
,
-
1
);
this
.
playAudioByUrl
(
audioUrl
,
()
=>
{
playDragonBoneAnimation
(
cat
,
'
normal
'
,
-
1
);
cb
();
});
}
else
{
cb
()
}
},
coolCatSpeakStart
(
cb
)
{
const
cat
=
cc
.
find
(
'
Canvas/bg/catFrame/CoolCat
'
);
playDragonBoneAnimation
(
cat
,
'
begin
'
,
-
1
);
...
...
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