[神罗环境]=======无法重复扫荡
parent
769bfe3a99
commit
a32c76c9a0
|
@ -69,6 +69,8 @@ function this:InitComponent()
|
||||||
|
|
||||||
this.FloatBlood = Util.GetGameObject(self.gameObject, "FloatBlood")
|
this.FloatBlood = Util.GetGameObject(self.gameObject, "FloatBlood")
|
||||||
this.FloatBlood.gameObject:SetActive(false)
|
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")
|
this.UI_effect_shilian_tab = Util.GetGameObject(self.gameObject, "UI_effect_shilian_tab")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ function this.Initialize()
|
||||||
this.killCount=0 --已击杀小怪数量
|
this.killCount=0 --已击杀小怪数量
|
||||||
this.bombUsed=0 --炸弹已使用次数
|
this.bombUsed=0 --炸弹已使用次数
|
||||||
this.towerCleanFloor=0 --可以扫荡的层数
|
this.towerCleanFloor=0 --可以扫荡的层数
|
||||||
|
this.isSweep=false --是否可以扫荡
|
||||||
end
|
end
|
||||||
|
|
||||||
-- function this.RefreshTrialInfo(towerCopyInfo)
|
-- function this.RefreshTrialInfo(towerCopyInfo)
|
||||||
|
|
|
@ -88,6 +88,10 @@ function TrialMapPanel:BindEvent()
|
||||||
|
|
||||||
--扫荡按钮
|
--扫荡按钮
|
||||||
Util.AddClick(this.btn_sweep,function()
|
Util.AddClick(this.btn_sweep,function()
|
||||||
|
if MapTrialManager.isSweep then
|
||||||
|
PopupTipPanel.ShowTip("无法再次扫荡")
|
||||||
|
return
|
||||||
|
end
|
||||||
NetManager.TowerCleanfloorRequest(function()
|
NetManager.TowerCleanfloorRequest(function()
|
||||||
NetManager.MapInfoRequest(MapManager.curCarbonType, function(msg)
|
NetManager.MapInfoRequest(MapManager.curCarbonType, function(msg)
|
||||||
MapPanel.Dispose()
|
MapPanel.Dispose()
|
||||||
|
@ -97,6 +101,7 @@ function TrialMapPanel:BindEvent()
|
||||||
MapManager.curAreaId =FormationTypeDef.FORMATION_DREAMLAND
|
MapManager.curAreaId =FormationTypeDef.FORMATION_DREAMLAND
|
||||||
MapTrialManager.isHaveBoss = false
|
MapTrialManager.isHaveBoss = false
|
||||||
MapManager.isTimeOut = false
|
MapManager.isTimeOut = false
|
||||||
|
MapTrialManager.isSweep=true
|
||||||
SwitchPanel.OpenPanel(UIName.MapPanel)
|
SwitchPanel.OpenPanel(UIName.MapPanel)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
@ -184,7 +189,7 @@ function TrialMapPanel:OnOpen()
|
||||||
if MapTrialManager.curTowerLevel<=MapTrialManager.towerCleanFloor then
|
if MapTrialManager.curTowerLevel<=MapTrialManager.towerCleanFloor then
|
||||||
this.btn_sweep:SetActive(true)
|
this.btn_sweep:SetActive(true)
|
||||||
else
|
else
|
||||||
this.btn_sweep:SetActive(true)
|
this.btn_sweep:SetActive(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 检测引导
|
-- 检测引导
|
||||||
|
|
|
@ -21,6 +21,7 @@ function this:BindEvent()
|
||||||
|
|
||||||
Util.AddClick(this.btnSure,function()
|
Util.AddClick(this.btnSure,function()
|
||||||
local optionId = eventConfig[eventId].Option[1]
|
local optionId = eventConfig[eventId].Option[1]
|
||||||
|
MapTrialManager.isSweep=false
|
||||||
OptionBehaviourManager.JumpEventPoint(eventId, optionId,UIManager.GetOpenPanel(UIName.GeneralPopup))
|
OptionBehaviourManager.JumpEventPoint(eventId, optionId,UIManager.GetOpenPanel(UIName.GeneralPopup))
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue