红点修改提交
parent
022681face
commit
7703a9e740
|
|
@ -890,13 +890,21 @@ function this.InitDynamicActData()
|
||||||
end
|
end
|
||||||
return this.allData
|
return this.allData
|
||||||
end
|
end
|
||||||
function this.CheckDynamicActTaskRed()
|
function this.CheckDynamicActTaskRed(red)
|
||||||
this.InitDynamicActData()
|
this.InitDynamicActData()
|
||||||
if not this.allData then
|
if not this.allData then
|
||||||
return false
|
return false
|
||||||
end
|
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
|
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
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue