【战斗】再次优化护盾类特效的显示层级
parent
bb685191dd
commit
a9a402bd42
|
@ -118,7 +118,9 @@ function BuffCtrl:AddBuffEffect(buffName, isTrigger, offset)
|
|||
-- if sortingOrder==nil and buffName=="TongYong_Effect_buff_hunluan_1" then
|
||||
-- sortingOrder=BattleManager.GetBattleSorting()+1
|
||||
-- end
|
||||
local node = BattleManager.LoadAsset(buffName, sortingOrder - 1) -- buff特效比血条低一个层级
|
||||
local node = BattleManager.LoadAsset(buffName)
|
||||
Util.SetParticleSortLayer(node, sortingOrder - 1) -- buff特效比血条低一个层级
|
||||
node.name = tostring(sortingOrder - 1)
|
||||
-- node.transform:SetParent(self.RootPanel.transform)
|
||||
-- node.transform.localScale = Vector3.one
|
||||
node.transform:SetParent(self.owner.GameObject.transform)
|
||||
|
|
Loading…
Reference in New Issue