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
2ed9c613
Commit
2ed9c613
authored
Dec 28, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
30c7c2bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
op_09.js
assets/op_09/scene/op_09.js
+17
-0
No files found.
assets/op_09/scene/op_09.js
View file @
2ed9c613
...
@@ -308,6 +308,23 @@ cc.Class({
...
@@ -308,6 +308,23 @@ cc.Class({
btnNext
.
on
(
'
click
'
,
()
=>
{
btnNext
.
on
(
'
click
'
,
()
=>
{
this
.
optionJump
(
btnNext
,
0.05
);
this
.
optionJump
(
btnNext
,
0.05
);
});
});
const
btnCoolCat
=
cc
.
find
(
'
Canvas/bg/catFrame/BtnCoolCat
'
);
btnCoolCat
.
on
(
'
click
'
,
()
=>
{
const
cat
=
cc
.
find
(
'
Canvas/bg/catFrame/CoolCat
'
);
const
btn
=
cc
.
find
(
'
Canvas/bg/btnReplay
'
);
if
(
btn
.
active
)
{
playDragonBoneAnimation
(
cat
,
'
finish
'
,
-
1
);
this
.
playAudioByUrl
(
this
.
data
.
endAudio
,
()
=>
{
playDragonBoneAnimation
(
cat
,
'
normal
'
,
-
1
);
});
}
else
{
playDragonBoneAnimation
(
cat
,
'
begin
'
,
-
1
);
this
.
playAudioByUrl
(
this
.
data
.
startAudio
,
()
=>
{
playDragonBoneAnimation
(
cat
,
'
normal
'
,
-
1
);
});
}
});
},
},
onAnswerRight
()
{
onAnswerRight
()
{
...
...
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