diff --git a/Assets/ManagedResources/~Lua/Modules/Pokemon/PokemonInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/Pokemon/PokemonInfoPanel.lua index c0f1c76845..274f095f28 100644 --- a/Assets/ManagedResources/~Lua/Modules/Pokemon/PokemonInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Pokemon/PokemonInfoPanel.lua @@ -41,7 +41,7 @@ function PokemonInfoPanel:InitComponent() this.namne = Util.GetGameObject(self.transform, "nameInfo/nameText"):GetComponent("Text") this.sortText = Util.GetGameObject(self.transform, "nameInfo/sortText") - this.upZhenImage = Util.GetGameObject(self.transform, "nameInfo/upZhenImage") + this.upZhenImage = Util.GetGameObject(self.transform, "nameInfo/upZhenImage"):GetComponent("Image") this.leftBtn = Util.GetGameObject(self.transform, "leftBtn/GameObject") this.rightBtn = Util.GetGameObject(self.transform, "rightBtn/GameObject") @@ -366,7 +366,9 @@ function this.UpdateHeroInfoData() SetTextVerTial(this.namne,Vector3.New(98,1.64,0)) this.sortText:SetActive(sortIndex > 0) this.sortText:GetComponent("Text").text = sortIndex - this.upZhenImage:SetActive(sortIndex > 0) + this.upZhenImage.gameObject:SetActive(sortIndex > 0) + this.upZhenImage:SetNativeSize() + end