tcx_xiyou_yueNan
zhangjiannan 2025-04-08 11:18:19 +08:00
parent b15f6d25a4
commit a0f81c8555
1 changed files with 6 additions and 6 deletions

View File

@ -128,12 +128,6 @@ function BattleFailPopup:OnOpen(battlePanel, showRecord, backPanel, _fightType)
--车迟抢夺cd计时
GuildCarDelayManager.SetCdTime(GuildCarDelayProType.Loot)
end
if PlayerManager.serverTime > (PlayerPrefs.GetInt("FirstRecharge", 0) + 86400) then
local activityId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FirstRecharge)
if activityId and activityId ~= 0 and ActTimeCtrlManager.SingleFuncState(1) then
UIManager.OpenPanel(UIName.FirstRechargePanel)
end
end
end
function this:LoseJump(id)
@ -233,6 +227,12 @@ end
--界面关闭时调用(用于子类重写)
function BattleFailPopup:OnClose()
Game.GlobalEvent:DispatchEvent(GameEvent.Map.MaskState, 0)
if PlayerManager.serverTime > (PlayerPrefs.GetInt("FirstRecharge", 0) + 86400) then
local activityId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FirstRecharge)
if activityId and activityId ~= 0 and ActTimeCtrlManager.SingleFuncState(1) then
UIManager.OpenPanel(UIName.FirstRechargePanel)
end
end
end
--界面销毁时调用(用于子类重写)