Beispiel #1
0
 protected override void Awake()
 {
     base.Awake();
     this.loginBonus = this.GetLoginBonus();
     if (this.loginBonus == null)
     {
         return;
     }
     this.loginCount = this.loginBonus.loginCount;
     this.GetStamps();
 }
Beispiel #2
0
    protected virtual IEnumerator CreateHomeData()
    {
        GUIPlayerStatus.RefreshParams_S(false);
        ClassSingleton <GUIMonsterIconList> .Instance.RefreshList(MonsterDataMng.Instance().GetMonsterDataList());

        ClassSingleton <FaceMissionAccessor> .Instance.faceMission.MissionTapCheck();

        ClassSingleton <FaceMissionAccessor> .Instance.faceMission.SetBadge(false);

        ClassSingleton <FacePresentAccessor> .Instance.facePresent.SetBadgeOnly();

        ClassSingleton <FaceNewsAccessor> .Instance.faceNews.SetBadgeOnly();

        ClassSingleton <PartsMenuFriendIconAccessor> .Instance.partsMenuFriendIcon.FrinedListCheck();

        if (ConstValue.IS_CHAT_OPEN != 1)
        {
            ClassSingleton <FaceChatNotificationAccessor> .Instance.faceChatNotification.gameObject.SetActive(false);
        }
        GUIFace.SetFacilityShopButtonBadge();
        PartsMenu.SetMenuButtonAlertBadge();
        this.DownloadMenuBanner();
        while (!TextureManager.instance.isLoadSaveData)
        {
            yield return(null);
        }
        GameWebAPI.RespDataCM_LoginBonus respDataCM_LoginBonus = DataMng.Instance().RespDataCM_LoginBonus;
        if (respDataCM_LoginBonus.loginBonus != null && respDataCM_LoginBonus.loginBonus.campaign != null)
        {
            GameWebAPI.RespDataCM_LoginBonus.LoginBonus[] campaign2 = respDataCM_LoginBonus.loginBonus.campaign;
            for (int i = 0; i < campaign2.Length; i++)
            {
                GameWebAPI.RespDataCM_LoginBonus.LoginBonus campaign = campaign2[i];
                bool   isLoadEnd = false;
                string path      = CMD_LoginCampaign.GetBgPathForFTP(campaign.backgroundImg);
                TextureManager.instance.Load(path, delegate(Texture2D texture)
                {
                    isLoadEnd = true;
                }, 30f, true);
                while (!isLoadEnd)
                {
                    yield return(null);
                }
            }
        }
        yield return(base.StartCoroutine(this.CreateFarm()));

        this.StartCacheBattle();
        this.StartCacheParty();
        LeadCapture.Instance.CheckCaptureUpdate();
        this.ShowCampaignFacilityIcon();
        yield break;
    }
Beispiel #3
0
 private IEnumerator ShowLoginBonusCampaign()
 {
     DataMng.Instance().ShowLoginBonusNumC = 0;
     GameWebAPI.RespDataCM_LoginBonus respDataCM_LoginBonus = DataMng.Instance().RespDataCM_LoginBonus;
     if (respDataCM_LoginBonus.loginBonus == null || respDataCM_LoginBonus.loginBonus.campaign == null)
     {
         yield return(null);
     }
     else
     {
         int showNum = respDataCM_LoginBonus.loginBonus.campaign.Length;
         while (showNum > DataMng.Instance().ShowLoginBonusNumC)
         {
             bool         isClose        = false;
             Action <int> onClosedAction = delegate(int x)
             {
                 isClose = true;
                 DataMng.Instance().ShowLoginBonusNumC++;
             };
             GameWebAPI.RespDataCM_LoginBonus.LoginBonus loginBonus = respDataCM_LoginBonus.loginBonus.campaign[DataMng.Instance().ShowLoginBonusNumC];
             if (loginBonus.loginBonusId != "2")
             {
                 GUIMain.ShowCommonDialog(onClosedAction, "CMD_LoginAnimator", null);
             }
             else
             {
                 GUIMain.ShowCommonDialog(onClosedAction, "CMD_CampaignLogin", null);
             }
             while (!isClose)
             {
                 yield return(null);
             }
         }
     }
     yield break;
 }