private void OnLoginFailMessage(string message) { ExitConfirmDialog exitConfirmDialog = (ExitConfirmDialog)DialogManager.Instance.Popup(DialogManager.DIALOG_INDEX.EXIT_CONFIRM, exclusive: true); if (exitConfirmDialog != null) { exitConfirmDialog.InitDialog(message); exitConfirmDialog.CloseButtonHide(isHide: true); } }
private void Update() { if (!once && SceneLoadManager.Instance.IsLoadedDone()) { once = true; CommandInterpreter.Instance.Load(); BuffManager.Instance.Load(); DefenseManager.Instance.LoadAll(); UpgradePropManager.Instance.LoadAll(); if (BuildOption.Instance.Props.isluncherExecuteOnly && (BuildOption.Instance.IsNetmarble || BuildOption.Instance.target == BuildOption.TARGET.WAVE_REAL || BuildOption.Instance.IsAxeso5)) { string a = CommandInterpreter.ExtractValueFromParameter("luncher", string.Empty); if (a != "use") { ExitConfirmDialog exitConfirmDialog = (ExitConfirmDialog)DialogManager.Instance.Popup(DialogManager.DIALOG_INDEX.EXIT_CONFIRM, exclusive: true); if (exitConfirmDialog != null) { exitConfirmDialog.InitDialog(StringMgr.Instance.Get("LUNCHER_MUST_EXCUTE")); exitConfirmDialog.CloseButtonHide(isHide: true); } isProgressStop = true; } } if (!BuildOption.Instance.Props.isDuplicateExcuteAble && !isProgressStop && !BuildOption.Instance.IsDuplicateExcute()) { ExitConfirmDialog exitConfirmDialog2 = (ExitConfirmDialog)DialogManager.Instance.Popup(DialogManager.DIALOG_INDEX.EXIT_CONFIRM, exclusive: true); if (exitConfirmDialog2 != null) { exitConfirmDialog2.InitDialog(StringMgr.Instance.Get("DUPLICATE_EXCUTE")); exitConfirmDialog2.CloseButtonHide(isHide: true); } isProgressStop = true; } if (VersionTextureManager.Instance.moviePublisher != null) { VersionTextureManager.Instance.moviePublisher.Play(); if (VersionTextureManager.Instance.moviePublisher.audioClip != null) { AudioSource component = GetComponent <AudioSource>(); if (null != component) { component.mute = false; component.clip = VersionTextureManager.Instance.moviePublisher.audioClip; component.Stop(); component.Play(); } } } } if (!onceusk && BuffManager.Instance.IsLoaded) { onceusk = true; DownLoadAssetBundleUsk(); } if (!onceItem && UskManager.Instance.bLoaded) { onceItem = true; DownLoadAssetBundleSounds(); PimpManager.Instance.Load(); TItemManager.Instance.LoadAll(); BrickManager.Instance.ChangeUskDecals(); LevelUpCompensationManager.Instance.Load(); MissionLoadManager.Instance.Load(); } if (!onceShop && TItemManager.Instance.IsLoaded) { onceShop = true; ShopManager.Instance.Load(); BundleManager.Instance.Load(); } deltaTime += Time.deltaTime; switch (step) { case STEP.AUTO_LOGIN: case STEP.AUTO_LOGIN_TO_RUNUP: case STEP.AUTO_LOGIN_TO_NETMARBLE: break; case STEP.PUBLISHER: if (isFadeIn) { if (deltaTime > fadeInTime) { FadeOut(); } else if (Input.GetMouseButtonDown(0) || Input.GetMouseButtonDown(1) || Input.GetKeyDown(KeyCode.Escape)) { Bang(); step = STEP.DEVELOPER; FadeIn(); } else { alpha = Mathf.Lerp(alphaFrom, alphaTo, deltaTime / fadeInTime); } } else if (deltaTime > fadeOutTime) { step = STEP.DEVELOPER; FadeIn(); } else { alpha = Mathf.Lerp(alphaFrom, alphaTo, deltaTime / fadeOutTime); } break; case STEP.DEVELOPER: if (isFadeIn) { if (deltaTime > fadeInTime) { FadeOut(); } else if (custom_inputs.Instance.GetButtonDown("K_FIRE1") || custom_inputs.Instance.GetButtonDown("K_MAIN_MENU")) { Bang(); FadeOut(); } else { alpha = Mathf.Lerp(alphaFrom, alphaTo, deltaTime / fadeInTime); } } else if (deltaTime > fadeOutTime) { MoveNext(); } else { alpha = Mathf.Lerp(alphaFrom, alphaTo, deltaTime / fadeOutTime); } break; case STEP.MOVIE_PUBLISHER: if (VersionTextureManager.Instance.moviePublisher != null && VersionTextureManager.Instance.moviePublisher.audioClip != null) { if (!VersionTextureManager.Instance.moviePublisher.isPlaying) { step = STEP.DEVELOPER; AudioSource component2 = GetComponent <AudioSource>(); if (null != component2) { component2.Stop(); } FadeIn(); } else if (Input.GetMouseButtonDown(0) || Input.GetMouseButtonDown(1) || Input.GetKeyDown(KeyCode.Escape)) { step = STEP.DEVELOPER; AudioSource component3 = GetComponent <AudioSource>(); if (null != component3) { component3.Stop(); } FadeIn(); } } else { step = STEP.DEVELOPER; AudioSource component4 = GetComponent <AudioSource>(); if (null != component4) { component4.Stop(); } FadeIn(); } break; } }