特效层级修改

dev_chengFeng
jiaoyangna 2021-06-03 10:38:37 +08:00
parent 3c3ab0a8b8
commit eea172a5f6
1 changed files with 4 additions and 4 deletions

View File

@ -34,9 +34,6 @@ function TreasureStorePopup:InitComponent()
table.insert(effectList,Util.GetGameObject(this.panel,"Fx_moon"))
this.Fx_Ripple = Util.GetGameObject(this.panel,"Fx_Ripple")
table.insert(effectList,this.Fx_Ripple)
this.scrollView:ForeachItemGO(function(index,go)
table.insert(effectList,Util.GetGameObject(go,"Fx_Circle"))
end)
this.lianyiBtn = Util.GetGameObject(this.panel,"lianyiBtn")
end
@ -96,8 +93,11 @@ end
function TreasureStorePopup:OnSortingOrderChange()
for i = 1,#effectList do
Util.SetParticleSortLayer(effectList[i], self.sortingOrder - orginLayer)
Util.SetParticleSortLayer(effectList[i], self.sortingOrder + 1)
end
this.scrollView:ForeachItemGO(function(index,go)
Util.SetParticleSortLayer(Util.GetGameObject(go,"Fx_Circle"), self.sortingOrder + 1)
end)
orginLayer = self.sortingOrder
end