【乾坤宝盒】跳转进入乾坤宝盒界面,查看魂印特效穿透

dev_chengFeng
ZhangBiao 2021-10-16 15:37:58 +08:00
parent 6cae26f8bb
commit e86a0c04a6
1 changed files with 9 additions and 1 deletions

View File

@ -112,7 +112,15 @@ function QianKunBox:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function QianKunBox:OnSortingOrderChange()
function QianKunBox:OnSortingOrderChange(_sortingOrder)
sortingOrder = _sortingOrder or 0
Util.SetParticleSortLayer(self.effect, sortingOrder+1)
Util.SetParticleSortLayer(self.zqbgEffect, sortingOrder+1)
for i = 1, 5 do
if self.icons[i] and self.icons[i].effect then
Util.SetParticleSortLayer(self.icons[i].effect.gameObject, sortingOrder+1)
end
end
end
-- 打开,重新打开时回调