过场动画

This commit is contained in:
xiekaidong 2023-06-02 11:07:23 +08:00
parent 3b36d944c9
commit 197fcb9518
2 changed files with 10 additions and 7 deletions

View File

@ -46,13 +46,15 @@ function BattleManager:isInBattle()
end
function BattleManager:playBattle(battleType, params, returnFunc)
params = params or {}
if self.battleController then -- 同一时间只能有一场战斗
self:clear()
end
self.returnFunc = returnFunc
UIManager:stopCurrentBGM()
self:_play(battleType, params)
UIManager:showLoading(UIManager.LOADING_TYPE.CLOUD, function()
params = params or {}
if self.battleController then -- 同一时间只能有一场战斗
self:clear()
end
self.returnFunc = returnFunc
UIManager:stopCurrentBGM()
self:_play(battleType, params)
end)
end
function BattleManager:_play(battleType, params)

View File

@ -434,6 +434,7 @@ function BattleController:getOtherSideTeam(side)
end
function BattleController:onLoadComplete()
UIManager:closeLoading()
self:handleBuffs()
self:battleStart()
end