特效层级修改
parent
3c3ab0a8b8
commit
eea172a5f6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue