逍遥 红点
parent
e7698bd4e1
commit
dcc33d0124
|
|
@ -36,6 +36,7 @@ function this.GetOpenMapData(func)
|
|||
_data[msg.infos[i].mapId].first=msg.infos[i].first
|
||||
end
|
||||
this.allMapData=_data
|
||||
|
||||
this.CheckRedPoint2()
|
||||
if func then
|
||||
func(_data)
|
||||
|
|
@ -368,8 +369,10 @@ function this.CheckRedPoint(_mapId,_eventId)
|
|||
return true
|
||||
end
|
||||
for k, v in pairs(this.allMapData) do
|
||||
LogGreen("v.redPoint:"..v.redPoint.." k:"..k)
|
||||
for i = 1 , 3 do
|
||||
if v.redPoint == 1 then
|
||||
LogGreen("k:"..k.." i:"..i.." true:"..PlayerPrefs.GetInt(string.format("%s#%s#%s",PlayerManager.uid,tostring(k),tostring(i))))
|
||||
if PlayerPrefs.GetInt(string.format("%s#%s#%s",PlayerManager.uid,tostring(k),tostring(i))) == 1 then
|
||||
return true
|
||||
end
|
||||
|
|
@ -379,7 +382,6 @@ function this.CheckRedPoint(_mapId,_eventId)
|
|||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
end
|
||||
return false
|
||||
|
|
|
|||
Loading…
Reference in New Issue