コード例 #1
0
 public void Refresh()
 {
     this.mRemainingTime.enabled = false;
     this.mNextDesc.transform.parent.gameObject.SetActive(false);
     for (int i = 0; i < 5; i++)
     {
         this.mUI78s[i].gameObject.SetActive(false);
         this.mUI79s[i].gameObject.SetActive(false);
     }
     if (GUIRewardTreeInfo.IsVisible)
     {
         this.mData = Globals.Instance.Player.ActivitySystem.REData;
         this.RefreshContent();
     }
 }
コード例 #2
0
 public void LoadData(int buyFundNum, int worldOpenTimeStamp, uint sevenDayVersion, List<SevenDayRewardData> sdrData, uint shareVersion, List<ShareAchievementData> shareData, uint activityAchievementVersion, List<ActivityAchievementData> aaData, uint activityValueVersion, List<ActivityValueData> avData, uint activityShopDataVersion, List<ActivityShopData> asData, ActivityPayData apData, List<ActivityPayShopData> apsData, ActivityRollEquipData reData, ActivitySpecifyPayData spData, ActivityGroupBuyingData gbData, ActivityNationalDayData ieData, ActivityHalloweenData hData)
 {
     if (!this.initFlag)
     {
         this.InitInfos();
     }
     this.BuyFundNum = buyFundNum;
     this.WorldOpenTimeStamp = worldOpenTimeStamp;
     if (sevenDayVersion != 0u && sevenDayVersion != this.SevenDayVersion)
     {
         this.SevenDayVersion = sevenDayVersion;
         for (int i = 0; i < sdrData.Count; i++)
         {
             SevenDayRewardDataEx sevenDayReward = this.GetSevenDayReward(sdrData[i].ID);
             if (sevenDayReward == null)
             {
                 global::Debug.LogErrorFormat("GetSevenDayReward error, id = {0}", new object[]
                 {
                     sdrData[i].ID
                 });
             }
             else
             {
                 sevenDayReward.Data.Value = sdrData[i].Value;
                 sevenDayReward.Data.TakeReward = sdrData[i].TakeReward;
             }
         }
     }
     if (shareVersion != 0u && shareVersion != this.ShareVersion)
     {
         this.ShareVersion = shareVersion;
         for (int j = 0; j < shareData.Count; j++)
         {
             ShareAchievementDataEx shareAchievement = this.GetShareAchievement(shareData[j].ID);
             if (shareAchievement == null)
             {
                 global::Debug.LogErrorFormat("GetShareAchievement error, id = {0}", new object[]
                 {
                     shareData[j].ID
                 });
             }
             else
             {
                 shareAchievement.Data.Value = shareData[j].Value;
                 shareAchievement.Data.Shared = shareData[j].Shared;
                 shareAchievement.Data.TakeReward = shareData[j].TakeReward;
             }
         }
     }
     if (activityAchievementVersion != 0u && activityAchievementVersion != this.ActivityAchievementVersion)
     {
         this.ActivityAchievementVersion = activityAchievementVersion;
         this.AADatas = aaData;
     }
     if (activityValueVersion != 0u && activityValueVersion != this.ActivityValueVersion)
     {
         this.ActivityValueVersion = activityValueVersion;
         this.AVDatas = avData;
     }
     if (activityShopDataVersion != 0u && activityShopDataVersion != this.ActivityShopVersion)
     {
         this.ActivityShopVersion = activityShopDataVersion;
         this.ActivityShops = asData;
     }
     this.APData = apData;
     if (apsData != null)
     {
         this.APSDatas = apsData;
     }
     this.REData = reData;
     this.SPData = spData;
     this.GBData = gbData;
     this.IEData = ieData;
     this.HData = hData;
 }