Commit f6140ae7 authored by unknown's avatar unknown

修复答案不显示的问题

parent e6e8ca31
......@@ -315,7 +315,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 470.9924650161464,
"_orthoHeight": 375,
"_near": 1,
"_far": 2000,
"_color": {
......@@ -13232,6 +13232,9 @@
"__id__": 382
},
"totalTime": 50,
"resultLab": {
"__id__": 398
},
"_id": "a3b0bpXKVKi6G7Xsut/FHS"
},
{
......
......@@ -33,6 +33,9 @@ export class RingSumCtr extends Component {
@property(CCFloat)
totalTime: number = 0;
@property(Label)
resultLab: Label = null!;
private level = 2;
private levelData: RingSumCfg = null!;
......@@ -103,6 +106,7 @@ export class RingSumCtr extends Component {
this.countdownLab.string = Utils.formatTime(Math.floor(this.totalTime * 1000));
this.curRSItem = null!;
this.loadLevelData();
this.resultLab.string = `答案:${this.levelData.result}`;
this.circle.setAllText(this.levelData.numStrArr);
this.circle.setAllItemType(this.levelData.fixCtrArr);
this.circle.hideAllNorItemText();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment