public static void Reset() { if ((StoreManager.HAS_THIRD_PARTY_APP_STORE != null) && (ApplicationMgr.GetAndroidStore() != AndroidStore.BLIZZARD)) { OnReset(); } }
private void OnClick(UIEvent e) { if (ApplicationMgr.AllowResetFromFatalError != null) { if (this.m_redirectToStore) { PlatformDependentValue <string> value4 = new PlatformDependentValue <string>(PlatformCategory.OS) { iOS = "https://itunes.apple.com/app/hearthstone-heroes-warcraft/id625257520?ls=1&mt=8", Android = "https://play.google.com/store/apps/details?id=com.blizzard.wtcg.hearthstone" }; PlatformDependentValue <string> value2 = value4; value4 = new PlatformDependentValue <string>(PlatformCategory.OS) { iOS = "https://itunes.apple.com/cn/app/lu-shi-chuan-shuo-mo-shou/id841140063?ls=1&mt=8", Android = "https://www.battlenet.com.cn/account/download/hearthstone/android?style=hearthstone" }; PlatformDependentValue <string> value3 = value4; if (ApplicationMgr.GetAndroidStore() == AndroidStore.AMAZON) { value2.Android = "http://www.amazon.com/gp/mas/dl/android?p=com.blizzard.wtcg.hearthstone"; } if (MobileDeviceLocale.GetCurrentRegionId() == Network.BnetRegion.REGION_CN) { value2 = value3; } Application.OpenURL((string)value2); } else { float waitDuration = (ApplicationMgr.Get().LastResetTime() + this.m_delayBeforeNextReset) - UnityEngine.Time.realtimeSinceStartup; Log.JMac.Print("Remaining time to wait before allowing a reconnect attempt: " + waitDuration, new object[0]); if (waitDuration > 0f) { this.m_inputBlocker.RemoveEventListener(UIEventType.RELEASE, new UIEvent.Handler(this.OnClick)); this.m_closedSignText.Text = GameStrings.Get("GLOBAL_SPLASH_CLOSED_RECONNECTING"); this.m_allowClick = false; this.m_reconnectTip.gameObject.SetActive(false); base.StartCoroutine(this.WaitBeforeReconnecting(waitDuration)); } else { UnityEngine.Debug.Log("resetting!"); this.m_inputBlocker.RemoveEventListener(UIEventType.RELEASE, new UIEvent.Handler(this.OnClick)); ApplicationMgr.Get().Reset(); } } } else { this.m_inputBlocker.RemoveEventListener(UIEventType.RELEASE, new UIEvent.Handler(this.OnClick)); ApplicationMgr.Get().Exit(); } }
public bool ShouldShowMiniSummary() { return(((StoreManager.HAS_THIRD_PARTY_APP_STORE != null) && (ApplicationMgr.GetAndroidStore() != AndroidStore.BLIZZARD)) || this.ClosedStore); }