protected override void Update()
 {
     base.Update();
     GUIScreenResult.UpdateState updateState = (GUIScreenResult.UpdateState) this.seq;
     if (updateState != GUIScreenResult.UpdateState.Initialize)
     {
         if (updateState != GUIScreenResult.UpdateState.OpenResult)
         {
             if (updateState != GUIScreenResult.UpdateState.Wait)
             {
             }
         }
         else if (++this.timeCt >= 20)
         {
             RestrictionInput.EndLoad();
             this.OpenResultUI();
             this.timeCt = 0;
             this.seq    = 2;
         }
     }
     else
     {
         this.result      = ClassSingleton <QuestData> .Instance.RespDataWD_DungeonResult;
         this.multiResult = ClassSingleton <QuestData> .Instance.RespData_WorldMultiResultInfoLogic;
         if (this.result == null && this.multiResult == null)
         {
             ScreenController.ChangeHomeScreen(CMD_Tips.DISPLAY_PLACE.TitleToFarm);
             this.seq = 2;
         }
         else
         {
             this.seq = 1;
         }
     }
 }
Esempio n. 2
0
    private IEnumerator GameStart()
    {
        ClassSingleton <QuestData> .Instance.ClearDNGDataCache();

        if (DataMng.Instance().RespDataCM_Login.penaltyUserInfo != null && DataMng.Instance().RespDataCM_Login.penaltyUserInfo.penaltyLevel == "2")
        {
            RestrictionInput.SuspensionLoad();
            string @string = StringMaster.GetString("PenaltyTitle");
            string message = DataMng.Instance().RespDataCM_Login.penaltyUserInfo.penalty.message;
            AlertManager.ShowAlertDialog(delegate(int x)
            {
                this.CancelGameStart();
            }, @string, message, AlertManager.ButtonActionType.Close, false);
            yield break;
        }
        APIUtil.Instance().alertOnlyCloseButton = true;
        yield return(base.StartCoroutine(StoreInit.Instance().InitRestoreOperation()));

        if (!Loading.IsShow())
        {
            RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        }
        APIUtil.Instance().alertOnlyCloseButton = false;
        AgreementConsent agreementConsent       = new AgreementConsent();
        bool             isAgreement            = false;

        yield return(base.StartCoroutine(agreementConsent.CheckAgreement(delegate(bool result)
        {
            isAgreement = result;
        })));

        if (!isAgreement)
        {
            this.CancelGameStart();
            yield break;
        }
        UpdateMasterData updateMasterData = new UpdateMasterData();

        yield return(base.StartCoroutine(updateMasterData.UpdateData()));

        yield return(base.StartCoroutine(this.InitAssetBundleDownloadInfo()));

        bool tutorialStart = this.CheckFirstTutorial();

        if (tutorialStart)
        {
            yield break;
        }
        bool isUpdate = this.UpdateAssetBundle();

        if (isUpdate)
        {
            yield break;
        }
        ScreenController.ChangeHomeScreen(CMD_Tips.DISPLAY_PLACE.TitleToFarm);
        yield break;
    }
    private void CreatePopup(string title, string message)
    {
        CMD_Alert cmd_Alert = GUIMain.ShowCommonDialog(delegate(int i)
        {
            if (this.resultTimeOutMode == GUIScreenResult.ResultTimeOutMode.HOME)
            {
                RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
                ScreenController.ChangeHomeScreen(CMD_Tips.DISPLAY_PLACE.TitleToFarm);
            }
            else
            {
                GUIMain.BackToTOP("UIStartupCaution", 0.8f, 0.8f);
            }
        }, "CMD_Alert", null) as CMD_Alert;

        cmd_Alert.Title = title;
        cmd_Alert.Info  = message;
        cmd_Alert.SetDisplayButton(CMD_Alert.DisplayButton.CLOSE);
    }
Esempio n. 4
0
    private IEnumerator EndAssetBundleDownload()
    {
        RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        if ("1" != DataMng.Instance().RespDataCM_Login.tutorialStatus.endFlg)
        {
            AdjustWrapper.Instance.TrackEvent(AdjustWrapper.EVENT_ID_FINISH_TUTORIAL);
            TutorialFirstFinishRequest request = new TutorialFirstFinishRequest();
            yield return(base.StartCoroutine(request.RequestFirstTutorialFinish()));
        }
        float time  = Time.realtimeSinceStartup;
        int   count = AssetDataMng.Instance().GetDownloadAssetBundleCount(string.Empty);

        global::Debug.Log("======================================= GetDownloadAssetBundleCount() USED TIME = " + (Time.realtimeSinceStartup - time).ToString() + " Sec.");
        if (count > 0)
        {
            AlertManager.ShowAlertDialog(new Action <int>(this.BackToTOP), "LOCAL_ERROR_SAVE_DATA_IO");
        }
        else
        {
            ScreenController.ChangeHomeScreen(CMD_Tips.DISPLAY_PLACE.TitleToFarm);
        }
        yield break;
    }
 private void GoToFarm()
 {
     RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_OFF);
     ScreenController.ChangeHomeScreen(CMD_Tips.DISPLAY_PLACE.BattleToFarm);
 }