过场动画

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,6 +46,7 @@ function BattleManager:isInBattle()
end end
function BattleManager:playBattle(battleType, params, returnFunc) function BattleManager:playBattle(battleType, params, returnFunc)
UIManager:showLoading(UIManager.LOADING_TYPE.CLOUD, function()
params = params or {} params = params or {}
if self.battleController then -- 同一时间只能有一场战斗 if self.battleController then -- 同一时间只能有一场战斗
self:clear() self:clear()
@ -53,6 +54,7 @@ function BattleManager:playBattle(battleType, params, returnFunc)
self.returnFunc = returnFunc self.returnFunc = returnFunc
UIManager:stopCurrentBGM() UIManager:stopCurrentBGM()
self:_play(battleType, params) self:_play(battleType, params)
end)
end end
function BattleManager:_play(battleType, params) function BattleManager:_play(battleType, params)

View File

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