过场动画

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