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