【战力冲刺】提交
parent
14af727eab
commit
a6d0a4f7f0
|
@ -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
|
||||
|
||||
|
|
|
@ -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])
|
||||
-- 根据状态设置红点现隐
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue