Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_03_1
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_03_1
Commits
00107cee
Commit
00107cee
authored
Dec 23, 2021
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:调整猫咪动画逻辑;调整图片动画频率
parent
583c8e38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
14 deletions
+25
-14
OP_03_1.js
play/assets/OP_03_1/scene/OP_03_1.js
+25
-14
No files found.
play/assets/OP_03_1/scene/OP_03_1.js
View file @
00107cee
...
...
@@ -353,23 +353,34 @@ cc.Class({
this
.
_showStandby
=
true
;
const
clickCat
=
(
audioUrl
,
aniName
)
=>
{
//播放待机音频
if
(
this
.
data
.
guideAudioUrl2
){
if
(
audioUrl
){
const
state
=
this
.
playAni
(
'
begin
'
,
0
);
const
state
=
this
.
playAni
(
aniName
,
0
);
//播放完成,停止动画
this
.
playAudioByUrl
(
this
.
data
.
guideAudioUrl2
,
()
=>
{
this
.
playAudioByUrl
(
audioUrl
,
()
=>
{
state
.
stop
();
this
.
_showStandby
=
false
;
this
.
playAni
(
'
normal
'
,
0
);
});
}
else
{
this
.
playAni
(
'
begin
'
,
1
,
()
=>
{
this
.
playAni
(
aniName
,
1
,
()
=>
{
this
.
_showStandby
=
false
;
});
}
}
//如果已经结束,就播放结束音频;其他情况就播放待机音频
if
(
this
.
_shown
)
{
clickCat
(
this
.
data
.
guideAudioUrl3
,
'
finish
'
);
}
else
{
clickCat
(
this
.
data
.
guideAudioUrl2
,
'
begin
'
);
}
});
...
...
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