public void UpdateCurTab()
 {
     if (ChargeActivityLogic_SC.Instance())
     {
         ChargeActivityLogic_SC.Instance().InitPrize();
     }
     if (ChargeActivityLogic_SY.Instance())
     {
         ChargeActivityLogic_SY.Instance().InitPrize();
     }
     if (ChargeActivityLogic_CZ.Instance())
     {
         ChargeActivityLogic_CZ.Instance().InitPage();
     }
     if (ChargeActivityLogic_XY.Instance())
     {
         ChargeActivityLogic_XY.Instance().InitData();
     }
     if (CostRebateLogic.Instance())
     {
         CostRebateLogic.Instance().InitData();
     }
     if (SpecialTimePayRebateLogic.Instance())
     {
         SpecialTimePayRebateLogic.Instance().InitData();
     }
     if (ChargeActivityLogic_MT.Instance())
     {
         ChargeActivityLogic_MT.Instance().InitPrize();
     }
 }
Example #2
0
 public void UpdateChargeTip()
 {
     if (ChargeActivityLogic_SY.IsMonthCardCanGet() ||
         ChargeActivityLogic_SY.IsNeedClickToday() ||
         ChargeActivityLogic_CZ.IsGrowUpCanGet() ||
         ChargeActivityLogic_CZ.IsNeedClickToday() ||
         ChargeActivityLogic_XY.IsNeedShowTip() ||
         CostRebateLogic.IsRebateCanGet() ||
         CostRebateLogic.IsNeedClickToday() ||
         SpecialTimePayRebateLogic.IsRebateCanGet() ||
         SpecialTimePayRebateLogic.IsNeedClickToday() ||
         ChargeActivityLogic_MT.IsNeedClickToday())
     {
         m_RemainTips.gameObject.SetActive(true);
     }
     else
     {
         m_RemainTips.gameObject.SetActive(false);
     }
 }
Example #3
0
 void Awake()
 {
     m_Instance = this;
 }
 public void UpdateRemainTips()
 {
     //月卡
     if (ChargeActivityLogic_SY.IsMonthCardCanGet() ||
         ChargeActivityLogic_SY.IsNeedClickToday())
     {
         m_RemainMonthCardTips.gameObject.SetActive(true);
     }
     else
     {
         m_RemainMonthCardTips.gameObject.SetActive(false);
     }
     //成长基金
     if (ChargeActivityLogic_CZ.IsGrowUpCanGet() ||
         ChargeActivityLogic_CZ.IsNeedClickToday())
     {
         m_RemainGrowUpTips.gameObject.SetActive(true);
     }
     else
     {
         m_RemainGrowUpTips.gameObject.SetActive(false);
     }
     //许愿
     if (ChargeActivityLogic_XY.IsNeedShowTip())
     {
         m_WishingWellTips.gameObject.SetActive(true);
     }
     else
     {
         m_WishingWellTips.gameObject.SetActive(false);
     }
     //消费返利
     if (CostRebateLogic.IsRebateCanGet() ||
         CostRebateLogic.IsNeedClickToday())
     {
         m_CostRebateTips.gameObject.SetActive(true);
     }
     else
     {
         m_CostRebateTips.gameObject.SetActive(false);
     }
     //特殊时间
     if (SpecialTimePayRebateLogic.IsRebateCanGet() ||
         SpecialTimePayRebateLogic.IsNeedClickToday())
     {
         m_SpecialTimePayRebateTips.gameObject.SetActive(true);
     }
     else
     {
         m_SpecialTimePayRebateTips.gameObject.SetActive(false);
     }
     //日卡
     if (ChargeActivityLogic_MT.IsNeedClickToday())
     {
         m_DayCardTips.gameObject.SetActive(true);
     }
     else
     {
         m_DayCardTips.gameObject.SetActive(false);
     }
 }
        void OnCommonDataChange(int nIndex, int nValue)
        {
            if (nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_COPYSCENE_QUITTIME)
            {
                if (FunctionButtonLogic.Instance() != null)
                {
                    FunctionButtonLogic.Instance().ExitTime = nValue;
                }
            }
            else if (nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_CJG_SWEEP_CD)
            {
                GameManager.gameManager.PlayerDataPool.CJGSweepCDTime = nValue;
                if (DungeonWindow.Instance() != null)
                {
                    DungeonWindow.Instance().UpdateTabInfo();
                }
            }
            else if (nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_COPYSCENE_SWEEP_CD)
            {
                GameManager.gameManager.PlayerDataPool.CopyeSceneSweepCDTime = nValue;
            }
            else if (nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_VIPCP_JXZ ||
                     nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_VIPCP_YZW ||
                     nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_VIPCP_ZLQJ ||
                     nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_VIPCP_YWGM ||
                     nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_VIPCP_NHCJ ||
                     nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_VIPCP_SSS)
            {
                if (DungeonWindow.Instance() != null)
                {
                    DungeonWindow.Instance().UpdateTabInfo();
                }
            }
            else if (nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_SHARE_NANGUA_CODE_REWARD_COUNT)
            {
                if (ShareRootWindow.Instance() != null)
                {
                    ShareRootWindow.Instance().UpdateRewardCount();
                }
            }
            else if (nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_WISHINGWELL_TOTAL ||
                     nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_WISHINGWELL_FETCH)
            {
                if (ChargeActivityLogic_XY.Instance() != null)
                {
                    ChargeActivityLogic_XY.Instance().UpdateData();
                }
            }
            else if (nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_VIPCP_MONEYTREE)
            {
                if (MoneyTreeLogic.Instance() != null)
                {
                    MoneyTreeLogic.Instance().UpdateVipTip();
                }
            }
            else if (nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_PAOSHANG_GOTTEN_NUM)
            {
                if (MenuBarLogic.Instance() != null)
                {
                    MenuBarLogic.Instance().UpdateGuildAndMasterReserveMember();
                }
                if (PlayerFrameLogic.Instance() != null)
                {
                    PlayerFrameLogic.Instance().UpdateRemainNum();
                }
//                if (GuildWindow.Instance() != null)
//                {
//                    GuildWindow.Instance().UpdatePaoShangTip();
//                }
//                if (GuildPaoShang.Instance() != null)
//                {
//                    GuildPaoShang.Instance().UpdateMemTimesOneDay();
//                }
            }
//            else if (nIndex == (int)Games.UserCommonData.USER_COMMONDATA.CD_HONGBAO_SCORE)
//            {
//                if (MakeHongBaoWindow.Instance() != null )
//                {
//                    MakeHongBaoWindow.Instance().Score = nValue;
//                }
//            }
            else if (nIndex == (int)USER_COMMONDATA.CD_GUILDMISSION_DAILYDATA)
            {
//                if (GuildMission.Instance() != null)
//                {
//                    GuildMission.Instance().MisionData = nValue;
//                }
            }
//			else if (nIndex == (int)USER_COMMONDATA.CD_GIVEROSE_NUMBER
//			         || nIndex == (int)USER_COMMONDATA.CD_RECEIVEROSE_NUMBER )
//			{
//				if (LoverFlowerWindow.Instance() != null)
//				{
//					LoverFlowerWindow.Instance().UpdateRankNumber();
//				}
//			}
            else if (nIndex == (int)USER_COMMONDATA.CD_JUYIYITANG_GETAWARD)
            {
                if (JuYiYiTangWindow.Instance() != null)
                {
                    JuYiYiTangWindow.Instance().Init();
                }
            }
            else if (nIndex == (int)USER_COMMONDATA.CD_TRAINING_LEVEL ||
                     nIndex == (int)USER_COMMONDATA.CD_TRAINING_CHOICEDATA1 ||
                     nIndex == (int)USER_COMMONDATA.CD_TRAINING_CHOICEDATA2 ||
                     nIndex == (int)USER_COMMONDATA.CD_TRAINING_CHOICEDATA3)
            {
                if (TrainingLogic.Instance() != null)
                {
                    TrainingLogic.Instance().HandleUpdateTrainingLevel();
                }
            }
            else if (nIndex == (int)USER_COMMONDATA.CD_TRAINING_EXP)
            {
                if (TrainingLogic.Instance() != null)
                {
                    TrainingLogic.Instance().HandleUpdateTrainingExp();
                }
            }
            //else if (nIndex == (int)USER_COMMONDATA.CD_NEWSERVERACTIVITY)
            //{
            //    if (NewFunctionLogic.Instance() != null)
            //    {
            //        NewFunctionLogic.Instance().ShowNewServerActivity();
            //    }
            //}
        }