From 67e5cbf8c9a2e027a8b9e822542778ae948683ee Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Sat, 19 Jun 2021 15:29:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=9C=A3=20=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E8=AF=A6=E6=83=85=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Prefabs/UI/NewActivity/UpStarPre.prefab | 6 +++--- Assets/ManagedResources/~Lua/Modules/UpStar/UpStarPre.lua | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Assets/ManagedResources/Prefabs/UI/NewActivity/UpStarPre.prefab b/Assets/ManagedResources/Prefabs/UI/NewActivity/UpStarPre.prefab index dc72f9760e..6c210a8276 100644 --- a/Assets/ManagedResources/Prefabs/UI/NewActivity/UpStarPre.prefab +++ b/Assets/ManagedResources/Prefabs/UI/NewActivity/UpStarPre.prefab @@ -312,7 +312,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 + m_RaycastTarget: 0 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] @@ -677,7 +677,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 0.2509804} - m_RaycastTarget: 1 + m_RaycastTarget: 0 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] @@ -825,7 +825,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 + m_RaycastTarget: 0 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] diff --git a/Assets/ManagedResources/~Lua/Modules/UpStar/UpStarPre.lua b/Assets/ManagedResources/~Lua/Modules/UpStar/UpStarPre.lua index 448c0e23eb..97d793cecd 100644 --- a/Assets/ManagedResources/~Lua/Modules/UpStar/UpStarPre.lua +++ b/Assets/ManagedResources/~Lua/Modules/UpStar/UpStarPre.lua @@ -21,7 +21,7 @@ function UpStarPre:InitComponent() self.redPoint = Util.GetGameObject(self.middleLayout, "scroller2/redPoint") self.grid1 = Util.GetGameObject(self.middleLayout, "grid1") self.grid2 = Util.GetGameObject(self.middleLayout, "scroller2/grid2") - self.GetBtn = Util.GetGameObject(self.middleLayout, "scroller2/GetBtn"):GetComponent("Button") + self.GetBtn = Util.GetGameObject(self.middleLayout, "scroller2/GetBtn") self.grid3 = Util.GetGameObject(self.middleLayout, "scroller3/grid3") self.grid3 = Util.GetGameObject(self.middleLayout, "scroller3/grid3") self.itemPre = Util.GetGameObject(self.middleLayout, "itemPre") @@ -42,7 +42,7 @@ function UpStarPre:BindEvent() end) end) - Util.AddOnceClick(self.GetBtn.gameObject, function() + Util.AddOnceClick(self.GetBtn, function() NetManager.GetActivityRewardRequest(self.data.missionId,self.actData.activityId,function(msg) UIManager.OpenPanel(UIName.RewardItemPopup,msg,1) self.data.state = 2 @@ -158,10 +158,10 @@ function UpStarPre:SetBtn1() end end if self.data.state == 1 then - self.GetBtn.enabled = true + self.GetBtn.gameObject:SetActive(true) self.redPoint.gameObject:SetActive(true) else - self.GetBtn.enabled = false + self.GetBtn.gameObject:SetActive(false) self.redPoint.gameObject:SetActive(false) end end