Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interactiveGames_Level
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
xuxing@jiuaoedu.com
interactiveGames_Level
Commits
f6140ae7
Commit
f6140ae7
authored
Jan 20, 2022
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复答案不显示的问题
parent
e6e8ca31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
RingSum_1.scene
assets/sceneBundle/games/ringSum/scene/RingSum_1.scene
+4
-1
RingSumCtr.ts
assets/sceneBundle/games/ringSum/script/RingSumCtr.ts
+4
-0
No files found.
assets/sceneBundle/games/ringSum/scene/RingSum_1.scene
View file @
f6140ae7
...
@@ -315,7 +315,7 @@
...
@@ -315,7 +315,7 @@
"_priority": 1073741824,
"_priority": 1073741824,
"_fov": 45,
"_fov": 45,
"_fovAxis": 0,
"_fovAxis": 0,
"_orthoHeight":
470.9924650161464
,
"_orthoHeight":
375
,
"_near": 1,
"_near": 1,
"_far": 2000,
"_far": 2000,
"_color": {
"_color": {
...
@@ -13232,6 +13232,9 @@
...
@@ -13232,6 +13232,9 @@
"__id__": 382
"__id__": 382
},
},
"totalTime": 50,
"totalTime": 50,
"resultLab": {
"__id__": 398
},
"_id": "a3b0bpXKVKi6G7Xsut/FHS"
"_id": "a3b0bpXKVKi6G7Xsut/FHS"
},
},
{
{
...
...
assets/sceneBundle/games/ringSum/script/RingSumCtr.ts
View file @
f6140ae7
...
@@ -33,6 +33,9 @@ export class RingSumCtr extends Component {
...
@@ -33,6 +33,9 @@ export class RingSumCtr extends Component {
@
property
(
CCFloat
)
@
property
(
CCFloat
)
totalTime
:
number
=
0
;
totalTime
:
number
=
0
;
@
property
(
Label
)
resultLab
:
Label
=
null
!
;
private
level
=
2
;
private
level
=
2
;
private
levelData
:
RingSumCfg
=
null
!
;
private
levelData
:
RingSumCfg
=
null
!
;
...
@@ -103,6 +106,7 @@ export class RingSumCtr extends Component {
...
@@ -103,6 +106,7 @@ export class RingSumCtr extends Component {
this
.
countdownLab
.
string
=
Utils
.
formatTime
(
Math
.
floor
(
this
.
totalTime
*
1000
));
this
.
countdownLab
.
string
=
Utils
.
formatTime
(
Math
.
floor
(
this
.
totalTime
*
1000
));
this
.
curRSItem
=
null
!
;
this
.
curRSItem
=
null
!
;
this
.
loadLevelData
();
this
.
loadLevelData
();
this
.
resultLab
.
string
=
`答案:
${
this
.
levelData
.
result
}
`
;
this
.
circle
.
setAllText
(
this
.
levelData
.
numStrArr
);
this
.
circle
.
setAllText
(
this
.
levelData
.
numStrArr
);
this
.
circle
.
setAllItemType
(
this
.
levelData
.
fixCtrArr
);
this
.
circle
.
setAllItemType
(
this
.
levelData
.
fixCtrArr
);
this
.
circle
.
hideAllNorItemText
();
this
.
circle
.
hideAllNorItemText
();
...
...
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