[神罗环境]=======无法重复扫荡

dev_chengFeng
wangzhenxing 2022-08-18 16:32:06 +08:00
parent 769bfe3a99
commit a32c76c9a0
4 changed files with 10 additions and 1 deletions

View File

@ -69,6 +69,8 @@ function this:InitComponent()
this.FloatBlood = Util.GetGameObject(self.gameObject, "FloatBlood")
this.FloatBlood.gameObject:SetActive(false)
this.btn_sweep=Util.GetGameObject(self.gameObject, "btn_sweep")
this.btn_sweep:SetActive(false)
this.UI_effect_shilian_tab = Util.GetGameObject(self.gameObject, "UI_effect_shilian_tab")

View File

@ -32,6 +32,7 @@ function this.Initialize()
this.killCount=0 --已击杀小怪数量
this.bombUsed=0 --炸弹已使用次数
this.towerCleanFloor=0 --可以扫荡的层数
this.isSweep=false --是否可以扫荡
end
-- function this.RefreshTrialInfo(towerCopyInfo)

View File

@ -88,6 +88,10 @@ function TrialMapPanel:BindEvent()
--扫荡按钮
Util.AddClick(this.btn_sweep,function()
if MapTrialManager.isSweep then
PopupTipPanel.ShowTip("无法再次扫荡")
return
end
NetManager.TowerCleanfloorRequest(function()
NetManager.MapInfoRequest(MapManager.curCarbonType, function(msg)
MapPanel.Dispose()
@ -97,6 +101,7 @@ function TrialMapPanel:BindEvent()
MapManager.curAreaId =FormationTypeDef.FORMATION_DREAMLAND
MapTrialManager.isHaveBoss = false
MapManager.isTimeOut = false
MapTrialManager.isSweep=true
SwitchPanel.OpenPanel(UIName.MapPanel)
end)
end)
@ -184,7 +189,7 @@ function TrialMapPanel:OnOpen()
if MapTrialManager.curTowerLevel<=MapTrialManager.towerCleanFloor then
this.btn_sweep:SetActive(true)
else
this.btn_sweep:SetActive(true)
this.btn_sweep:SetActive(false)
end
-- 检测引导

View File

@ -21,6 +21,7 @@ function this:BindEvent()
Util.AddClick(this.btnSure,function()
local optionId = eventConfig[eventId].Option[1]
MapTrialManager.isSweep=false
OptionBehaviourManager.JumpEventPoint(eventId, optionId,UIManager.GetOpenPanel(UIName.GeneralPopup))
end)
end