diff --git a/Assets/ManagedResources/~Lua/Modules/NiuZhuanQianKun/NiuZhuanQianKunPanel.lua b/Assets/ManagedResources/~Lua/Modules/NiuZhuanQianKun/NiuZhuanQianKunPanel.lua index 1b5660704d..eb1cc1fe96 100644 --- a/Assets/ManagedResources/~Lua/Modules/NiuZhuanQianKun/NiuZhuanQianKunPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/NiuZhuanQianKun/NiuZhuanQianKunPanel.lua @@ -29,6 +29,7 @@ function NiuZhuanQianKun:InitComponent() this.rollBtn = Util.GetGameObject(self.gameObject,"rollBtn") this.center = Util.GetGameObject(self.gameObject,"center") this.tip = Util.GetGameObject(self.gameObject,"tip"):GetComponent("Text") + this.effect = Util.GetGameObject(self.gameObject,"UI_Effect_MianBan_NiuZhuanQianKun") for i = 1, 8 do rewardList[i] = Util.GetGameObject(self.gameObject,"center/reward"..i) textList[i] = Util.GetGameObject(rewardList[i],"Text") @@ -77,6 +78,8 @@ function NiuZhuanQianKun:RemoveListener() end function NiuZhuanQianKun:OnSortingOrderChange() + Util.AddParticleSortLayer(this.effect, self.sortingOrder - _sortingOrder) + _sortingOrder = self.sortingOrder end --界面打开时调用(用于子类重写) @@ -132,6 +135,7 @@ end --界面销毁时调用(用于子类重写) function NiuZhuanQianKun:OnDestroy() + _sortingOrder = 0 rewardList = {} textList = {} imgList = {}