表现修改一下

This commit is contained in:
xiekaidong 2023-05-11 20:14:59 +08:00
parent 240517e04e
commit 4bf948f670
2 changed files with 7 additions and 3 deletions

View File

@ -1058,7 +1058,7 @@ function BattleController:fillBoard(isRoundBeginCheck)
end
end
self.battleUI:fallGrid(pathMap, function()
self.battleUI:fallGrid(pathMap, isRoundBeginCheck, function()
self:onFillBoardOver(isRoundBeginCheck)
self.battleUI:enableUITouch()
end)

View File

@ -1120,8 +1120,12 @@ function BattleUI:removeGridOutOfScreen(posIdList)
end
end
function BattleUI:fallGrid(listInfo, callback)
self:showMask(false)
function BattleUI:fallGrid(listInfo, isRoundBeginCheck, callback)
if isRoundBeginCheck then
self:showMask(false)
else
self.boardMask:getTransform():SetAsLastSibling()
end
self.fallAniCount = 0
for posId, info in pairs(listInfo) do
self.fallAniCount = self.fallAniCount + 1