From 6f8cb042bb2d4de47ec86a3ba920c51d6e47a3ae Mon Sep 17 00:00:00 2001 From: "DESKTOP-98AVA47\\Administrator" <3046463818@qq.com> Date: Fri, 23 Jul 2021 11:17:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Popup/View/GeneralPopup_NewAddWishHero.lua | 11 ----------- 1 file changed, 11 deletions(-) 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)