Merge branch 'dev' of git.juzugame.com:b6-client/b6-lua into dev
This commit is contained in:
commit
d37872ad7b
@ -6,7 +6,7 @@ BattleConst.HALF_ROW_COUNT = 4 -- 计算偏移 math.ceil(ROW_COUNT / 2)
|
||||
BattleConst.HALF_COLUMN_COUNT = 4 -- 计算偏移 math.ceil(COLUMN_COUNT / 2)
|
||||
BattleConst.GRID_STEP_H = 94
|
||||
BattleConst.ROW_STEP = 10
|
||||
BattleConst.ONE_STEP_TIME = 0.2
|
||||
BattleConst.ONE_STEP_TIME = 0.1
|
||||
BattleConst.ELEMENT_TYPE_COUNT = 5
|
||||
BattleConst.ELEMENT_WIGHT = 100
|
||||
BattleConst.MAX_ELEMENT_WIGHT = 500
|
||||
|
||||
@ -1128,7 +1128,8 @@ function BattleUI:fallGrid(listInfo, callback)
|
||||
cell.fallSeq = baseObject:createBindTweenSequence()
|
||||
baseObject:setAnchoredPosition(info[1].x, info[1].y)
|
||||
local count = #info
|
||||
cell.fallSeq:Append(baseObject:getTransform():DOLocalPath(info, GConst.BattleConst.ONE_STEP_TIME * count):SetEase(CS.DG.Tweening.Ease.InOutQuint))
|
||||
local time = GConst.BattleConst.ONE_STEP_TIME * count
|
||||
cell.fallSeq:Append(baseObject:getTransform():DOLocalPath(info, time):SetEase(CS.DG.Tweening.Ease.InQuad))
|
||||
cell.fallSeq:AppendCallback(function()
|
||||
self.fallAniCount = self.fallAniCount - 1
|
||||
if self.fallAniCount == 0 then
|
||||
@ -1137,6 +1138,9 @@ function BattleUI:fallGrid(listInfo, callback)
|
||||
end
|
||||
end
|
||||
end)
|
||||
cell.fallSeq:InsertCallback(time + math.random() * 0.1 - 0.2, function()
|
||||
cell:showAni()
|
||||
end)
|
||||
end
|
||||
end
|
||||
if self.fallAniCount == 0 and callback then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user