购买特权 刷新礼包 修改

dev_chengFeng
jiaoyangna 2021-03-31 19:56:31 +08:00
parent 02fde882a8
commit 56605c0ab7
1 changed files with 10 additions and 10 deletions

View File

@ -82,16 +82,6 @@ function GiftPre:InitComponent()
self.tip4_en = Util.GetGameObject(self.tipRoot,"tip4_en")
self.tip5 = Util.GetGameObject(self.tipRoot,"tip5")
self.tip5Text = Util.GetGameObject(self.tip5,"Text"):GetComponent("Text")
self.tipRoot:SetActive(false)
self.tip1:SetActive(false)
self.tip1_en:SetActive(false)
self.tip2:SetActive(false)
self.tip2_en:SetActive(false)
self.tip3:SetActive(false)
self.tip3_en:SetActive(false)
self.tip4:SetActive(false)
self.tip4_en:SetActive(false)
self.tip5:SetActive(false)
end
--绑定事件(用于子类重写)
@ -230,6 +220,16 @@ function GiftPre:SetContent1()
self.grid:GetComponent("RectTransform").anchoredPosition = offSetX[0].scroll
self.type1.gameObject:SetActive(false)
self.type2.gameObject:SetActive(false)
self.tipRoot:SetActive(false)
self.tip1:SetActive(false)
self.tip1_en:SetActive(false)
self.tip2:SetActive(false)
self.tip2_en:SetActive(false)
self.tip3:SetActive(false)
self.tip3_en:SetActive(false)
self.tip4:SetActive(false)
self.tip4_en:SetActive(false)
self.tip5:SetActive(false)
self.btnBuy:GetComponent("Image").sprite = Util.LoadSprite("s_slbz_1anniuhuangse")
if self.data.DataType == DataType.Direct and self.data.buyType == DirectBuyType.DAILY_GIFT then
self.type2.gameObject:SetActive(true)