Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dc_cocos001
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
dc_cocos001
Commits
b7be153b
Commit
b7be153b
authored
Mar 21, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 翻页
parent
97d9e2db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
dc_cocos001.ts
assets/dc_cocos001/scene/dc_cocos001.ts
+5
-6
No files found.
assets/dc_cocos001/scene/dc_cocos001.ts
View file @
b7be153b
...
...
@@ -155,9 +155,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
playAudio
(
'
end
'
);
onHomeworkFinish
();
this
.
hideGuns
();
const
BtnRestart
=
cc
.
find
(
'
Canvas/bg/BtnRestart
'
);
BtnRestart
.
active
=
true
;
BtnRestart
.
opacity
=
255
;
// TODO 上报成绩,现在这里没采集成绩,所以后续再实现
window
[
"
courseware
"
].
nextPage
();
}
_status
=
null
async
gameStart
()
{
...
...
@@ -389,9 +391,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
currentQuestion
=
this
.
data
.
questionList
[
this
.
_status
.
currentQuestionIdx
];
this
.
updateRightNumber
();
if
(
this
.
_status
.
currentRightNumber
>=
currentQuestion
.
rigthNumber
)
{
this
.
log
(
"
打完了=============
"
)
this
.
stopShowBalls
();
await
asyncDelay
(
2
);
...
...
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