qinglong commit

dev_chengFeng
jiaoyangna 2020-08-26 16:32:12 +08:00
parent e1a2a7cd52
commit 24b4852ea7
1 changed files with 7 additions and 3 deletions

View File

@ -124,13 +124,17 @@ function this:topBar()
local needScore
if lv > 0 then
local lastRewardData = QinglongSerectTreasureManager.GetRewardData(lv - 1)
needScore = lastRewardData.needScore
if not lastRewardData then
needScore = 0
else
needScore = lastRewardData.needScore
end
else
needScore = 0
end
if rewardData.needScore and rewardData.needScore ~= 0 then
this.scoreText.text = curScore .."/"..rewardData.needScore - needScore
this.progress.fillAmount = curScore/(rewardData.needScore - needScore)
this.scoreText.text = curScore .."/"..rewardData.needScore - needScore
this.progress.fillAmount = curScore/(rewardData.needScore - needScore)
else
this.scoreText.text = Language[12351]
this.progress.fillAmount = 1