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
67198bab
Commit
67198bab
authored
Dec 17, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 销毁处理
parent
0cd1f6b4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
.DS_Store
.DS_Store
+0
-0
Sbox_FT_11.js
assets/Sbox_FT_11/scene/Sbox_FT_11.js
+9
-0
No files found.
.DS_Store
View file @
67198bab
No preview for this file type
assets/Sbox_FT_11/scene/Sbox_FT_11.js
View file @
67198bab
...
...
@@ -228,6 +228,11 @@ cc.Class({
// 随机亮起一个题干
showRandomQuestion
()
{
if
(
this
.
isDestroy
)
{
return
;
}
GameData
.
currOptionIndex
=
this
.
optionList
[
Math
.
floor
(
Math
.
random
()
*
this
.
optionList
.
length
)]
let
question
=
this
.
nodeDict
.
nodQuestionParent
.
children
[
GameData
.
currOptionIndex
];
let
ItemQuestion
=
question
.
getComponent
(
'
ItemQuestion
'
);
...
...
@@ -336,4 +341,8 @@ cc.Class({
}
},
onDestroy
()
{
this
.
isDestroy
=
true
;
}
});
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