特效大小和层级
This commit is contained in:
parent
0e43cbbbd0
commit
031034db50
@ -1272,11 +1272,8 @@ function BattleUnitComp:getEffectAndPlay(skill, fxInfo)
|
||||
end
|
||||
effectObj:setLocalScale(fxScale, fxScale, fxScale)
|
||||
end
|
||||
-- if fxInfo.is_floor then
|
||||
-- effectObj:setSortingOrder(0, 0)
|
||||
-- else
|
||||
-- effectObj:changeSortingOrderToFudge(BattleConst.BATTLE_BASE_ORDER, BattleConst.FX_SORTING_FUDGE_COEFFICIENT)
|
||||
-- end
|
||||
local baseOrder = BattleHelper:getBaseOrder()
|
||||
effectObj:setSortingOrder(baseOrder, 10)
|
||||
effectObj:play()
|
||||
local sid
|
||||
sid = BattleHelper:performDurationDelay(effectObj:getDuration(), function()
|
||||
|
||||
@ -256,6 +256,7 @@ function BattleController:prepareFight()
|
||||
self:initAtkUnits(onPreloadFinished)
|
||||
self:initDefUnits(onPreloadFinished)
|
||||
end)
|
||||
BattleHelper:setBaseOrder(self.battleUI:getUIOrder())
|
||||
self:loadOtherRes(onPreloadFinished)
|
||||
end
|
||||
|
||||
|
||||
@ -17,6 +17,15 @@ function BattleHelper:init()
|
||||
self.effectPools = BattlePool:getEffectPool()
|
||||
self.effectMap = {}
|
||||
self.seed = tonumber(tostring(os.time()):reverse():sub(1,6))
|
||||
self.baseOrder = 0
|
||||
end
|
||||
|
||||
function BattleHelper:setBaseOrder(baseOrder)
|
||||
self.baseOrder = baseOrder
|
||||
end
|
||||
|
||||
function BattleHelper:getBaseOrder()
|
||||
return self.baseOrder
|
||||
end
|
||||
|
||||
function BattleHelper:getFxConfig()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user