private void OnTouch() { bool flag = false; GameWebAPI.RespDataWD_DungeonResult respDataWD_DungeonResult = ClassSingleton <QuestData> .Instance.RespDataWD_DungeonResult; if (respDataWD_DungeonResult != null && "3" == respDataWD_DungeonResult.worldDungeonId) { flag = true; } else { GameWebAPI.RespData_WorldMultiResultInfoLogic respData_WorldMultiResultInfoLogic = ClassSingleton <QuestData> .Instance.RespData_WorldMultiResultInfoLogic; if (respData_WorldMultiResultInfoLogic != null && "3" == respData_WorldMultiResultInfoLogic.worldDungeonId) { flag = true; } } if (flag) { if (this.particle != null && !this.particle.isStopped) { this.particle.Stop(); } Action finishedAction = delegate() { this.ClosePanel(true); }; LeadReview.ShowReviewConfirm(LeadReview.MessageType.FIRST_CLEAR_AREA1_STAGE3, finishedAction, false); } else { this.ClosePanel(true); } }
public static CMD_CharacterDetailed CreateWindow(MonsterData monster, string evolutionType, bool reviewFirstEvolution, bool reviewFirstUltimaEvolution, Action endCutin) { CMD_CharacterDetailed.DataChg = monster; CMD_CharacterDetailed window = GUIMain.ShowCommonDialog(null, "CMD_CharacterDetailed", null) as CMD_CharacterDetailed; UIPanel uipanel = GUIMain.GetUIPanel(); int sortingOrder = uipanel.sortingOrder; CharacterDetailsEvolution characterDetailsEvolution = new CharacterDetailsEvolution(); characterDetailsEvolution.Initialize(sortingOrder, window.transform, evolutionType, delegate { window.characterCameraView.csRender3DRT.SetAnimation(CharacterAnimationType.win); if (endCutin != null) { endCutin(); } if (reviewFirstEvolution) { LeadReview.ShowReviewConfirm(LeadReview.MessageType.FIRST_EVOLUTION, null, false); } else if (reviewFirstUltimaEvolution) { LeadReview.ShowReviewConfirm(LeadReview.MessageType.FIRST_ULTIMA_EVOLUTION, null, false); } }); window.uiAnimation = characterDetailsEvolution; window.uiAnimation.OnOpenWindow(); return(window); }
private void ShowDetails() { foreach (GUIMonsterIcon guimonsterIcon in this.monsterIconList) { UnityEngine.Object.Destroy(guimonsterIcon.gameObject); } this.monsterIconList.Clear(); foreach (UISpriteAnimation uispriteAnimation in this.shiningList) { UnityEngine.Object.Destroy(uispriteAnimation.gameObject); } if (null != this.prizeEfcDirector) { this.prizeEfcDirector.SetTypeParam(CMD_MonsterGashaResult.DataList); } this.ShowMonsterIcons(); this.assetsInventory.SetGashaPriceType(CMD_MonsterGashaResult.gashaInfo.priceType); this.startButton.SetGashaInfo(CMD_MonsterGashaResult.gashaInfo, CMD_MonsterGashaResult.isTutorial); this.startButton.SetPlayButton(); if (null != this.prizeEfcCont) { this.prizeEfcCont.gameObject.SetActive(false); } if (CMD_MonsterGashaResult.gashaInfo.priceType.GetCostAssetsCategory() == MasterDataMng.AssetCategory.DIGI_STONE) { LeadReview leadReview = new LeadReview(); leadReview.DisplayDialog(CMD_MonsterGashaResult.DataList); } CMD_MonsterGashaResult.DataList = null; }
private static void OnButtonReviewConfirm(int selectButtonIndex) { if (selectButtonIndex == 0) { Application.OpenURL(ConstValue.STORE_SITE_URL); } if (LeadReview.onFinishedAction != null) { LeadReview.onFinishedAction(); LeadReview.onFinishedAction = null; } }
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; }