添加一个红点

dev_chengFeng
jiaoyangna 2021-03-17 14:20:51 +08:00
parent 909ed03c04
commit ee30858c07
1 changed files with 3 additions and 0 deletions

View File

@ -1000,6 +1000,9 @@ function this.TimeFormat()
if time > 0 then
activityTabs[k].go.gameObject:SetActive(true)
activityTabs[k].timeText.text = TimeToHMS(time)
local canGet = BagManager.GetTotalItemNum(1221) > 0 and BagManager.GetTotalItemNum(1222) > 0 and
BagManager.GetTotalItemNum(1223) > 0 and BagManager.GetTotalItemNum(1224) > 0
activityTabs[k].redpot:SetActive(canGet)
else
activityTabs[k].go.gameObject:SetActive(false)
end