下落动画

This commit is contained in:
xiekaidong 2023-04-24 21:09:43 +08:00
parent 4acf0850f8
commit f746bbfa82

View File

@ -913,6 +913,7 @@ function BattleUI:fallGrid(listInfo, callback)
local count = #info local count = #info
cell.fallSeq:Append(baseObject:getTransform():DOLocalPath(info, GConst.BattleConst.ONE_STEP_TIME * count)) cell.fallSeq:Append(baseObject:getTransform():DOLocalPath(info, GConst.BattleConst.ONE_STEP_TIME * count))
cell.fallSeq:AppendCallback(function() cell.fallSeq:AppendCallback(function()
cell:showAni()
self.fallAniCount = self.fallAniCount - 1 self.fallAniCount = self.fallAniCount - 1
if self.fallAniCount == 0 then if self.fallAniCount == 0 then
if callback then if callback then