parent
a660947930
commit
e71bc9e91a
|
@ -943,7 +943,9 @@ function this.BattleLogic()
|
||||||
PlayerPrefs.SetInt("SmallSoldierFailed"..PlayerManager.uid,FightPointPassManager.soldierLayerId)
|
PlayerPrefs.SetInt("SmallSoldierFailed"..PlayerManager.uid,FightPointPassManager.soldierLayerId)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if this.battleTimer then
|
||||||
this.battleTimer:Start()
|
this.battleTimer:Start()
|
||||||
|
end
|
||||||
cd=0
|
cd=0
|
||||||
battleTime=curSoliderStageConfig.Time
|
battleTime=curSoliderStageConfig.Time
|
||||||
bossHp=curSoliderStageConfig.Hp
|
bossHp=curSoliderStageConfig.Hp
|
||||||
|
|
|
@ -174,7 +174,7 @@ function SmallSoldierInfoPanel:OnShow()
|
||||||
self.skipImg:SetActive(state==1)
|
self.skipImg:SetActive(state==1)
|
||||||
|
|
||||||
if SmallSoldierManager.isAuto then
|
if SmallSoldierManager.isAuto then
|
||||||
soliderAutoTimer = Timer.New(function ()
|
--soliderAutoTimer = Timer.New(function ()
|
||||||
if SmallSoldierManager.isAuto then
|
if SmallSoldierManager.isAuto then
|
||||||
if oldData==nil then
|
if oldData==nil then
|
||||||
NetManager.ReplaceSoldierRequest(1,0,function ()
|
NetManager.ReplaceSoldierRequest(1,0,function ()
|
||||||
|
@ -186,7 +186,10 @@ function SmallSoldierInfoPanel:OnShow()
|
||||||
end
|
end
|
||||||
isUp=true
|
isUp=true
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Solider.ShowSoliderChangeInfo,newData.type,isUp)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Solider.ShowSoliderChangeInfo,newData.type,isUp)
|
||||||
|
soliderAutoTimer = Timer.New(function ()
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
|
end,0.3,1,true):Start()
|
||||||
|
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
if isNewUp then
|
if isNewUp then
|
||||||
|
@ -202,19 +205,22 @@ function SmallSoldierInfoPanel:OnShow()
|
||||||
|
|
||||||
end
|
end
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Solider.ShowSoliderChangeInfo,newData.type,isUp)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Solider.ShowSoliderChangeInfo,newData.type,isUp)
|
||||||
|
soliderAutoTimer = Timer.New(function ()
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
|
end,0.3,1,true):Start()
|
||||||
|
|
||||||
|
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
NetManager.ReplaceSoldierRequest(2,0,function ()
|
NetManager.ReplaceSoldierRequest(2,0,function ()
|
||||||
|
soliderAutoTimer = Timer.New(function ()
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
|
end,0.3,1,true):Start()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,0.3,1,true):Start()
|
--end,0.3,1,true):Start()
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue