diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_NewAddWishHero.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_NewAddWishHero.lua index 744628846a..e79e60d599 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_NewAddWishHero.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_NewAddWishHero.lua @@ -60,19 +60,8 @@ function this.SingleHeroDataShow(go,_heroData) Util.GetGameObject(_go.transform, "posIcon"):SetActive(false) Util.GetGameObject(_go.transform, "proIcon"):GetComponent("Image").sprite = this.spLoader:LoadSprite(GetProStrImageByProNum(heroData.PropertyName)) local starGrid = Util.GetGameObject(_go.transform, "star") - if _heroData.Id==currHeroId then - this.selectObj.transform:SetParent(_go.transform) - this.selectObj.transform.localScale=Vector3.one - this.selectObj.transform.localPosition=Vector3.New(0,30,0) - end SetHeroStars(this.spLoader, starGrid, heroData.Star,1,nil,-15) local cardclickBtn = Util.GetGameObject(_go.transform, "icon") - Util.AddOnceClick(cardclickBtn, function() - this.selectObj.transform:SetParent(_go.transform) - this.selectObj.transform.localScale=Vector3.one - this.selectObj.transform.localPosition=Vector3.New(0,30,0) - currHeroId=_heroData.Id - end) Util.AddLongPressClick(cardclickBtn, function() UIManager.OpenPanel(UIName.RoleGetInfoPopup, false, heroData.Id, heroData.Star) end, 0.5)