每分钟改成每半小时
parent
73e25f6969
commit
e79b46200a
|
@ -294,6 +294,7 @@ function this.IntiReward()
|
|||
go.item = newObjToParent(this.rewardItemPre, this.rewardGrid)
|
||||
go.icon = Util.GetGameObject(go.item, "iconBg/icon"):GetComponent("Image")
|
||||
go.text = Util.GetGameObject(go.item, "rewardbg/context"):GetComponent("Text")
|
||||
Util.GetGameObject(go.item, "rewardbg/rate"):SetActive(false)
|
||||
this.rewardList[i] = go
|
||||
end
|
||||
|
||||
|
@ -302,10 +303,10 @@ function this.IntiReward()
|
|||
local addValue = FightPointPassManager.GetItemVipValue(rewardData[i][1])
|
||||
local baseValue = rewardData[i][2]
|
||||
if addValue - 1 <= 0 then
|
||||
this.rewardList[i].text.text = "+" .. rewardData[i][2]
|
||||
this.rewardList[i].text.text = "+" .. rewardData[i][2] .."/30分钟"
|
||||
else
|
||||
local valueShow = math.round((addValue - 1) * baseValue)
|
||||
this.rewardList[i].text.text = string.format("+%s\n<color=#00FF00>(+%s)</color>", baseValue, valueShow)
|
||||
this.rewardList[i].text.text = string.format("+%s\n<color=#00FF00>(+%s)</color>", baseValue, valueShow).."/30分钟"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue