void InitButton() { m_ShouChongButton.gameObject.SetActive(false); m_ShouZhouButton.gameObject.SetActive(false); m_ShouYueButton.gameObject.SetActive(false); m_ChengZhangButton.gameObject.SetActive(false); m_WishingWellButton.gameObject.SetActive(false); m_CostRebateButton.gameObject.SetActive(false); m_SpecialTimePayRebateButton.gameObject.SetActive(false); m_DayCardButton.gameObject.SetActive(false); PayActivityData payData = GameManager.gameManager.PlayerDataPool.PayActivity; int playerLevel = GameManager.gameManager.PlayerDataPool.MainPlayerBaseAttr.Level; TabButton m_SelectButton = null; //首充 if (payData.IsFirstTimeFlag() == false) { m_ShouChongButton.gameObject.SetActive(true); if (m_SelectButton == null) { m_SelectButton = m_ShouChongButton; } } //首周 if (payData.IsFirstWeekOver() == false && payData.IsFirstTimeFlag() == true) { m_ShouZhouButton.gameObject.SetActive(true); if (m_SelectButton == null) { m_SelectButton = m_ShouZhouButton; } } //招财进宝 可重复购买 界面一直有 { m_ShouYueButton.gameObject.SetActive(true); if (m_SelectButton == null) { m_SelectButton = m_ShouYueButton; } } //成长 if (payData.IsGrowUpFlag() == true) { if (payData.IsGrowUpOver() == false) { m_ChengZhangButton.gameObject.SetActive(true); if (m_SelectButton == null) { m_SelectButton = m_ChengZhangButton; } } } else { if (playerLevel < payData.GrowUpLevel) { m_ChengZhangButton.gameObject.SetActive(true); if (m_SelectButton == null) { m_SelectButton = m_ChengZhangButton; } } } //许愿池 if (GameManager.gameManager.PlayerDataPool.IsServerFlagOpen(SERVER_FLAGS_ENUM.FLAG_WISHING)) { int intime = GameManager.gameManager.PlayerDataPool.WishingWell_InTime; if (intime > 0) { m_WishingWellButton.gameObject.SetActive(true); if (m_SelectButton == null) { m_SelectButton = m_WishingWellButton; } } } //消费返利 CostRebateData costRebate = GameManager.gameManager.PlayerDataPool.CostRebate; if (costRebate.CostRebateOpen == true) { m_CostRebateButton.gameObject.SetActive(true); if (m_SelectButton == null) { m_SelectButton = m_CostRebateButton; } } SpecialTimePayRebateData specialPayRebate = GameManager.gameManager.PlayerDataPool.SpecailTimePayRebate; if (specialPayRebate.SpecialTimePayRebateOpen == true) { m_SpecialTimePayRebateButton.gameObject.SetActive(true); if (m_SelectButton == null) { m_SelectButton = m_SpecialTimePayRebateButton; } } //日卡 if (payData.DayCardOpen && payData.IsDayCardFlag() == false) { m_DayCardButton.gameObject.SetActive(true); if (m_SelectButton == null) { m_SelectButton = m_DayCardButton; } } m_ButtonGrid.repositionNow = true; if (null != m_SelectButton) { m_TabController.OnTabClicked(m_SelectButton); } if (m_ShouZhouButton.gameObject.activeSelf == false) { GameManager.gameManager.PlayerDataPool.IsClickChargeActivitySZ = true; } if (m_ShouYueButton.gameObject.activeSelf == false) { GameManager.gameManager.PlayerDataPool.IsClickChargeActivitySY = true; } if (m_ChengZhangButton.gameObject.activeSelf == false) { GameManager.gameManager.PlayerDataPool.IsClickChargeActivityCZ = true; } if (m_WishingWellButton.gameObject.activeSelf == false) { GameManager.gameManager.PlayerDataPool.IsClickWishingWell = true; } if (m_CostRebateButton.gameObject.activeSelf == false) { GameManager.gameManager.PlayerDataPool.IsClickCostRebate = true; } if (m_SpecialTimePayRebateButton.gameObject.activeSelf == false) { GameManager.gameManager.PlayerDataPool.IsClickSpecialTimePayRebate = true; } if (m_DayCardButton.gameObject.activeSelf == false) { GameManager.gameManager.PlayerDataPool.IsClickDayCard = true; } UpdateRemainTips(); }