changeAtlasScoreString : function (score,tfScore) {
if(tfScore.getDescription() == "LabelAtlas")//判断是否为艺术字
//if(tfScore instanceof ccui.TextAtlas)
return score.toString().replace("-", "/");
else
return score.toString();
},

balanceScore : function(num)//头像分数显示赋值
{
this.score += num;
var score = this.score;
var scoreStr = this.changeAtlasScoreString(score,this.tfScore);
this.tfScore.setString(scoreStr);
},

相关文章:

  • 2022-12-23
  • 2021-08-11
  • 2022-01-03
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-20
  • 2021-09-29
  • 2021-12-10
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案