红点修改提交
parent
022681face
commit
7703a9e740
|
|
@ -890,13 +890,21 @@ function this.InitDynamicActData()
|
|||
end
|
||||
return this.allData
|
||||
end
|
||||
function this.CheckDynamicActTaskRed()
|
||||
function this.CheckDynamicActTaskRed(red)
|
||||
this.InitDynamicActData()
|
||||
if not this.allData then
|
||||
return false
|
||||
end
|
||||
local type
|
||||
if red == RedPointType.DynamicActTask_MeiRi then
|
||||
type = 1
|
||||
elseif red == RedPointType.DynamicActTask_MeiZhou then
|
||||
type = 2
|
||||
else
|
||||
type = 0
|
||||
end
|
||||
for i=1,#this.allData do
|
||||
if this.allData[i].state == 1 then
|
||||
if this.allData[i].state == 1 and (type == 0 or (this.allData[i].type == type)) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue