【战斗】再次优化护盾类特效的显示层级

dev_chengFeng
gaoxin 2021-11-26 14:27:58 +08:00
parent bb685191dd
commit a9a402bd42
1 changed files with 3 additions and 1 deletions

View File

@ -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)