【战力冲刺】提交

dev_chengFeng
张彪 2022-02-17 17:14:33 +08:00
parent 14af727eab
commit a6d0a4f7f0
3 changed files with 11 additions and 2 deletions

View File

@ -852,12 +852,10 @@ function this.PowerRiceRedCheck()
if data then
for i = 1, #data.rewards do
if data.rewards[i].state == 0 and data.rewards[i].otherData.Values[1][1] <= PlayerManager.maxForce then
LogGreen("return true")
return true
end
end
end
LogRed("return false")
return false
end

View File

@ -674,6 +674,12 @@ function this.BindObject(rpType, rpObj)
return
end
BindObjs[rpType] = BindObjs[rpType] or {}
for index, value in ipairs(BindObjs[rpType]) do
if value == rpObj then
Log("红点类型 = "..rpType..", 重复绑定了物体,取消该次绑定")
return
end
end
table.insert(BindObjs[rpType], rpObj)
--Log("红点类型 = "..rpType..", 绑定了新物体,当前绑定的物体数量为 = "..#BindObjs[rpType])
-- 根据状态设置红点现隐

View File

@ -279,6 +279,11 @@ function PowerRice:OnDestroy()
self.itemList = {}
this.spLoader:Destroy()
self.Live = nil
for i = 1, #_TabData do
if _TabData[i] and _TabData[i].redPointType and TabBoxRedPoints[i] then
ClearRedPointObject(_TabData[i].redPointType,TabBoxRedPoints[i])
end
end
end
return PowerRice