Commit 73d70d02 authored by 李维's avatar 李维

修改分数计算问题

parent c551f77e
......@@ -97,7 +97,7 @@ export default class GameLayer extends cc.Component {
this.questionTime.string = "10";
this.startScore = mydata.score;
this.startScore = parseInt(mydata.score);
this.picRoot.active = false;
this.cupStart.active = true;
......@@ -244,6 +244,8 @@ export default class GameLayer extends cc.Component {
this.blueScore.string = data.status.totalAddBlueScore;
console.log("123", this.startScore, data.status.totalAddBlueScore)
cc.sys.localStorage.setItem("mySocre", this.startScore + data.status.totalAddBlueScore)
let lbnode = cc.instantiate(this.blueScore.node);
......
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