From 8b75d0a9d1a19c1a65b8a3469e81fa7c5a871126 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Thu, 15 Oct 2020 17:16:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BE=E5=AE=9D=E5=95=86=E4=BC=9A=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/TreasureStore/TreasureStorePopup.lua | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/TreasureStore/TreasureStorePopup.lua b/Assets/ManagedResources/~Lua/Modules/TreasureStore/TreasureStorePopup.lua index 7bf83a2aee..ff81930902 100644 --- a/Assets/ManagedResources/~Lua/Modules/TreasureStore/TreasureStorePopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/TreasureStore/TreasureStorePopup.lua @@ -5,7 +5,6 @@ local this=TreasureStorePopup local itemConfig=ConfigManager.GetConfig(ConfigName.ItemConfig) local GlobalActivity = ConfigManager.GetConfig(ConfigName.GlobalActivity) local itemsGrid = {} -local isPlayAnim = true function TreasureStorePopup:InitComponent() this.panel=Util.GetGameObject(this.gameObject,"Panel") this.backBtn=Util.GetGameObject(this.panel,"BackBtn") @@ -42,7 +41,6 @@ end function TreasureStorePopup:OnShow() this:RefreshPanel() this:TimeCountDown() - isPlayAnim = true end function TreasureStorePopup:OnClose() @@ -79,10 +77,6 @@ function TreasureStorePopup:RefreshPanel() this:SetScrollPre(go, allData[index]) end) end - if isPlayAnim then - SecTorPlayAnimByScroll(this.scrollView) - isPlayAnim = false - end this.scrollView:SetIndex(1) end @@ -103,11 +97,7 @@ function this.SortData(allData) end --设置每一条 function this:SetScrollPre(root,data) - if isPlayAnim then - root.gameObject:SetActive(false) - else - root.gameObject:SetActive(true) - end + root.gameObject:SetActive(true) local title=Util.GetGameObject(root,"Title"):GetComponent("Text") local iRoot=Util.GetGameObject(root,"ItemRoot") local buyBtn=Util.GetGameObject(root,"BuyBtn")