Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbox_FT_11
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
Sbox_FT_11
Commits
a3dafe37
Commit
a3dafe37
authored
Dec 16, 2020
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
只要最后一页完成就结束
parent
0c6a9189
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
Scene.js
play/assets/tmpGame/script/Scene.js
+4
-13
No files found.
play/assets/tmpGame/script/Scene.js
View file @
a3dafe37
...
...
@@ -114,10 +114,6 @@ cc.Class({
loadEnd
()
{
GameData
.
questionIndex
=
0
;
this
.
questionList
=
[];
for
(
let
i
=
0
;
i
<
this
.
data
.
questionList
.
length
;
i
++
)
{
this
.
questionList
[
i
]
=
i
;
}
this
.
initData
();
this
.
startGame
();
...
...
@@ -254,16 +250,11 @@ cc.Class({
},
checkOver
()
{
for
(
let
i
=
0
;
i
<
this
.
questionList
.
length
;
i
++
)
{
if
(
this
.
questionList
[
i
]
==
GameData
.
questionIndex
)
{
this
.
questionList
.
splice
(
i
,
1
);
break
;
}
}
if
(
this
.
questionList
.
length
==
0
)
{
let
node
=
cc
.
instantiate
(
this
.
layerOver
);
node
.
parent
=
this
.
node
;
if
(
GameData
.
questionIndex
!=
this
.
data
.
questionList
.
length
-
1
)
{
return
;
}
let
node
=
cc
.
instantiate
(
this
.
layerOver
);
node
.
parent
=
this
.
node
;
},
moveToQuestion
(
ItemAnswer
)
{
...
...
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