From 119c4e42043ad41c98d56713a3fd01a3e5b85cfc Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Tue, 28 Jul 2020 15:16:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BC=8F=E6=8F=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Popup/MapFormationInfoPopup.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/MapFormationInfoPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/MapFormationInfoPopup.lua index c37a591009..9376559a11 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/MapFormationInfoPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/MapFormationInfoPopup.lua @@ -14,7 +14,7 @@ function MapFormationInfoPopup:InitComponent() heroListGo[i] = SubUIManager.Open(SubUIConfig.RoleItemView, Util.GetGameObject(this.transform, "roleGrid").transform) end for i = 1,Util.GetGameObject(this.transform, "roleGrid").transform.childCount do - Util.AddParticleSortLayer(Util.GetGameObject(this.transform, "roleGrid").transform:GetChild(i - 1), self.sortingOrder - orginLayer2) + Util.AddParticleSortLayer(Util.GetGameObject(this.transform, "roleGrid").transform:GetChild(i - 1).gameObject, self.sortingOrder - orginLayer2) end orginLayer2 = self.sortingOrder orginLayer = self.sortingOrder @@ -22,7 +22,7 @@ end function MapFormationInfoPopup:OnSortingOrderChange() for i = 1,Util.GetGameObject(this.transform, "roleGrid").transform.childCount do - Util.AddParticleSortLayer(Util.GetGameObject(this.transform, "roleGrid").transform:GetChild(i - 1), self.sortingOrder - orginLayer) + Util.AddParticleSortLayer(Util.GetGameObject(this.transform, "roleGrid").transform:GetChild(i - 1).gameObject, self.sortingOrder - orginLayer) end orginLayer = self.sortingOrder end