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
ea501781
Commit
ea501781
authored
Sep 22, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
8bb814cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
op_09.js
play/assets/op_09/scene/op_09.js
+3
-6
No files found.
play/assets/op_09/scene/op_09.js
View file @
ea501781
...
@@ -157,15 +157,12 @@ cc.Class({
...
@@ -157,15 +157,12 @@ cc.Class({
},
},
refreshCoolCatPosition
()
{
refreshCoolCatPosition
()
{
const
cat
=
cc
.
find
(
'
Canvas/bg/catFrame/CoolCat
'
);
const
canvasWidth
=
cc
.
find
(
'
Canvas
'
).
width
;
const
canvasHeight
=
cc
.
find
(
'
Canvas
'
).
height
;
},
},
jumpToQuestion
(
questionIdx
)
{
jumpToQuestion
(
questionIdx
)
{
const
a
udioUrl
=
this
.
data
.
question_arr
[
questionIdx
].
question_audio_url
;
const
questionA
udioUrl
=
this
.
data
.
question_arr
[
questionIdx
].
question_audio_url
;
this
.
playAudioByUrl
(
a
udioUrl
);
this
.
playAudioByUrl
(
questionA
udioUrl
);
const
box
=
cc
.
find
(
'
Canvas/bg/box
'
);
const
box
=
cc
.
find
(
'
Canvas/bg/box
'
);
box
.
removeAllChildren
();
box
.
removeAllChildren
();
...
...
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