还是红点检测
parent
53cca0033b
commit
a99aa6ef6e
|
@ -66,7 +66,7 @@ function this.InitMirrorData()
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.CarbonRedCheck()
|
function this.CarbonRedCheck()
|
||||||
if not ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.TRIAL) then
|
if not ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.PEOPLE_MIRROR) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
this.GetTimeTip()
|
this.GetTimeTip()
|
||||||
|
|
|
@ -85,7 +85,8 @@ function FormationEditPopup:BindEvent()
|
||||||
if func~=nil then --保存完毕后 将英雄did合集传递过去 此时我拥有这些英雄 不用担心英雄已被删除
|
if func~=nil then --保存完毕后 将英雄did合集传递过去 此时我拥有这些英雄 不用担心英雄已被删除
|
||||||
func(dids)
|
func(dids)
|
||||||
end
|
end
|
||||||
PlayerPrefs.SetInt(PlayerManager.uid.."TrialIsOpen",1)--设置森罗红点关
|
PlayerPrefs.SetInt(PlayerManager.uid.."Trial",1)--设置森罗红点关
|
||||||
|
CheckRedPointStatus(RedPointType.Trial)
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
|
|
|
@ -237,6 +237,7 @@ end
|
||||||
--设置试练已杀小怪数量
|
--设置试练已杀小怪数量
|
||||||
function this.SetKillCount(v)
|
function this.SetKillCount(v)
|
||||||
CheckRedPointStatus(RedPointType.TrialReward)
|
CheckRedPointStatus(RedPointType.TrialReward)
|
||||||
|
CheckRedPointStatus(RedPointType.Trial)
|
||||||
this.killCount=v
|
this.killCount=v
|
||||||
end
|
end
|
||||||
--获取已杀小怪数量
|
--获取已杀小怪数量
|
||||||
|
@ -300,19 +301,11 @@ function this.SetHeroHp(data,did,func)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.TrialRedCheck()
|
function this.TrialRedCheck()
|
||||||
local var
|
local var = PlayerPrefs.GetInt(PlayerManager.uid.."Trial")
|
||||||
|
if var == 0 and ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.TRIAL) then
|
||||||
if PlayerPrefs.HasKey(PlayerManager.uid.."TrialIsOpen") then
|
|
||||||
var = PlayerPrefs.GetInt(PlayerManager.uid.."TrialIsOpen")
|
|
||||||
else
|
|
||||||
PlayerPrefs.SetInt(PlayerManager.uid.."TrialIsOpen",0)
|
|
||||||
end
|
|
||||||
|
|
||||||
if var == 1 then
|
|
||||||
return false
|
|
||||||
elseif var == 0 and ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.TRIAL) then
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
return MapTrialManager.TrialRewardRedPointCheck()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this
|
return this
|
|
@ -56,15 +56,17 @@ function this.ResetLocalData()
|
||||||
local text =PlayerManager.uid.."fiveTime"
|
local text =PlayerManager.uid.."fiveTime"
|
||||||
local curTime = GetTimeStamp()
|
local curTime = GetTimeStamp()
|
||||||
|
|
||||||
if PlayerPrefs.HasKey(text) then
|
if not PlayerPrefs.HasKey(text) then
|
||||||
if PlayerPrefs.GetInt(text) > curTime then
|
func()
|
||||||
func()
|
PlayerPrefs.SetInt(text,Today_N_OClockTimeStamp(5))
|
||||||
PlayerPrefs.SetInt(text,Today_N_OClockTimeStamp(5)+86400)
|
end
|
||||||
end
|
LogPink("PlayerPrefs.GetInt(text)"..PlayerPrefs.GetInt(text).." curTime"..curTime)
|
||||||
else
|
if PlayerPrefs.GetInt(text) < curTime then
|
||||||
func()
|
func()
|
||||||
PlayerPrefs.SetInt(text,Today_N_OClockTimeStamp(5)+86400)
|
PlayerPrefs.SetInt(text,Today_N_OClockTimeStamp(5)+86400)
|
||||||
end
|
end
|
||||||
|
LogGreen("PlayerPrefs.GetInt(text)"..PlayerPrefs.GetInt(text).." curTime"..curTime)
|
||||||
|
LogPurple(PlayerPrefs.GetInt(PlayerManager.uid.."Trial"))
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.OnGoldChange()
|
function this.OnGoldChange()
|
||||||
|
|
|
@ -107,7 +107,7 @@ function this.InitRedPointAllRelate()
|
||||||
|
|
||||||
RPData:SetParent(RedPointType.People_Mirror, RedPointType.Vientiane)
|
RPData:SetParent(RedPointType.People_Mirror, RedPointType.Vientiane)
|
||||||
RPData:SetParent(RedPointType.Trial, RedPointType.Vientiane)
|
RPData:SetParent(RedPointType.Trial, RedPointType.Vientiane)
|
||||||
RPData:SetParent(RedPointType.TrialReward, RedPointType.Trial)
|
-- RPData:SetParent(RedPointType.TrialReward, RedPointType.Trial)
|
||||||
RPData:SetParent(RedPointType.EndLess, RedPointType.Vientiane)
|
RPData:SetParent(RedPointType.EndLess, RedPointType.Vientiane)
|
||||||
|
|
||||||
RPData:SetParent(RedPointType.LuckyCat_GetReward, RedPointType.LuckyCat)
|
RPData:SetParent(RedPointType.LuckyCat_GetReward, RedPointType.LuckyCat)
|
||||||
|
|
|
@ -109,6 +109,7 @@ function this.SetScrollPre(root,data)
|
||||||
getBtn:SetActive(false)
|
getBtn:SetActive(false)
|
||||||
this.RefreshPanel()
|
this.RefreshPanel()
|
||||||
CheckRedPointStatus(RedPointType.TrialReward)
|
CheckRedPointStatus(RedPointType.TrialReward)
|
||||||
|
CheckRedPointStatus(RedPointType.Trial)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue