屏蔽掉切换章节时,战斗地图停止

onepiece_demo_arena
xiejun 2024-01-20 11:44:58 +08:00
parent f649acf76b
commit b88ea858b9
1 changed files with 7 additions and 7 deletions

View File

@ -253,7 +253,7 @@ function FightPointPassMainPanel:InitComponent()
this.battleUpLvTipImg = this.battleUpLvTip:GetComponent("Image")
this.battleUpLvTipTxt = Util.GetGameObject(self.gameObject, "Bg/btnDown/battleUpLvTip/Text"):GetComponent("Text")
this.battleLockGo = Util.GetGameObject(self.gameObject, "Bg/btnDown/battleUpLvTip/Image")
--山河社稷图
--山河社稷图OpenPanel
this.btnFightLevel = Util.GetGameObject(self.gameObject, "Bg/LeftUp/box/btnFightLevel")
this.btnFightLevel:SetActive(false)
-- this.funcBtnList[FUNCTION_OPEN_TYPE.FIGHTLEVEL] = this.btnFightLevel
@ -800,12 +800,12 @@ end
-- 执行关卡战斗
function this.ExcuteBattle()
if not FightPointPassManager.IsChapterClossState() then
fightMap.StopAction()
if hasMap then
LogGreen("关闭挂机")
fightMap:OnClose()
hasMap = false
end
-- fightMap.StopAction()
-- if hasMap then
-- LogGreen("关闭挂机")
-- fightMap:OnClose()
-- hasMap = false
-- end
-- UIManager.OpenPanel(UIName.FightMiddleChoosePanel, FightPointPassManager.curOpenFight, true,function ()
-- --- 临时代码
-- --FightPointPassManager.SetChapterOpenState(false)