public static void SetFacilityStockIcon(bool enable) { if (null != GUIFace.instance) { GUIFace.instance.facilityStockIcon.gameObject.SetActive(enable); } GUIFace.SetFacilityAlertIcon(); }
public static void SetFacilityShopButtonBadge() { if (null != GUIFace.instance && null != GUIFace.instance.facilityShopButton) { GameWebAPI.RespDataMP_MyPage respDataMP_MyPage = DataMng.Instance().RespDataMP_MyPage; if (respDataMP_MyPage != null && respDataMP_MyPage.userNewsCountList != null) { if (0 < respDataMP_MyPage.userNewsCountList.facilityNewCount || 0 < respDataMP_MyPage.userNewsCountList.decorationNewCount) { GUIFace.instance.facilityShopButton.SetBadge(true); } else { GUIFace.instance.facilityShopButton.SetBadge(false); } } } GUIFace.SetFacilityAlertIcon(); }
protected virtual IEnumerator StartEvent() { yield return(base.StartCoroutine(this.CreateHomeData())); RestrictionInput.DeleteDisplayObject(); TipsLoading.Instance.StopTipsLoad(true); Loading.Invisible(); if (!GUIScreenHome.isManualScreenFadeIn) { yield return(base.StartCoroutine(this.StartScreenFadeIn(null))); } this.isFinishedStartLoading = true; bool isPenaltyLevelTwo = false; yield return(base.StartCoroutine(this.PenaltyCheck(delegate { GUIMain.BackToTOP("UIStartupCaution", 0.8f, 0.8f); isPenaltyLevelTwo = true; }))); if (isPenaltyLevelTwo) { yield break; } GUIManager.ResetTouchingCount(); yield return(base.StartCoroutine(this.ShowLoginBonusCampaign())); yield return(base.StartCoroutine(this.ShowLoginBonusNormal())); GameWebAPI.RespDataUS_GetPlayerInfo playerInfo = DataMng.Instance().RespDataUS_PlayerInfo; GameWebAPI.RespDataCM_LoginBonus loginBonus = DataMng.Instance().RespDataCM_LoginBonus; if (loginBonus != null && loginBonus.loginBonus != null && loginBonus.loginBonus.normal != null && loginBonus.loginBonus.normal.Length > 0 && playerInfo != null && playerInfo.playerInfo != null && playerInfo.playerInfo.loginCount == 3) { bool isReviewDialogClose = false; Action onFinishedAction = delegate() { isReviewDialogClose = true; }; LeadReview.ShowReviewConfirm(LeadReview.MessageType.TOTAL_LOGIN_COUNT_3DAYS, onFinishedAction, false); while (!isReviewDialogClose) { yield return(null); } } yield return(base.StartCoroutine(this.CheckRecoverBattle())); Loading.Display(Loading.LoadingType.LARGE, false); while (!AssetDataCacheMng.Instance().IsCacheAllReadyType(AssetDataCacheMng.CACHE_TYPE.CHARA_PARTY)) { yield return(null); } Loading.Invisible(); TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); yield return(base.StartCoroutine(tutorialObserver.StartGuidance(new Action <bool>(this.StartedGuidance)))); GUIFace.SetFacilityAlertIcon(); ClassSingleton <FaceMissionAccessor> .Instance.faceMission.SetParticleMissionIcon(); yield break; }