From 3d72bd510ad26ea19726c97a1366caa3008082e1 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Tue, 26 Jan 2021 10:33:18 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=89=9B=E8=BD=AC=E4=B9=BE=E5=9D=A4?= =?UTF-8?q?=E3=80=91=E7=89=B9=E6=95=88=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/NiuZhuanQianKun/NiuZhuanQianKunPanel.lua | 4 ++++ 1 file changed, 4 insertions(+) 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 = {}