Пример #1
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;
    }
Пример #2
0
    public override void ClosePanel(bool animation = true)
    {
        ClassSingleton <FaceMissionAccessor> .Instance.faceMission.SetBadge(true);

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

        GUIFace.SetFacilityShopButtonBadge();
        PartsMenu.SetMenuButtonAlertBadge();
        this.CloseAndFarmCamOn(animation);
        this.missionList.FadeOutAllListParts(null, false);
        this.missionList.SetHideScrollBarAllWays(true);
        this.csSelectPanelMissionSelect.FadeOutAllListParts(null, false);
        this.csSelectPanelMissionSelect.SetHideScrollBarAllWays(true);
    }