// Token: 0x0600632D RID: 25389 RVA: 0x00234320 File Offset: 0x00232720 private IEnumerator LoadTOS() { this.loadingIcon.SetActive(true); WWW www = new WWW(VRCUiPageTOS.GetTOSUrl()); float startTime = Time.realtimeSinceStartup; while (!www.isDone) { if (Time.realtimeSinceStartup - startTime > 10f) { this.OnLoadError("Request Timed Out"); base.StartCoroutine(this.RetryLoadTOS()); yield break; } yield return(null); } if (!string.IsNullOrEmpty(www.error)) { this.OnLoadError(www.error); base.StartCoroutine(this.RetryLoadTOS()); } else { this.OnLoadSuccess(www.text); } yield break; }
// Token: 0x06006333 RID: 25395 RVA: 0x0023446C File Offset: 0x0023286C private void OnLoadError(string error) { Debug.LogError("TOS load error (" + VRCUiPageTOS.GetTOSUrl() + "): " + error); this.loadingIcon.SetActive(false); if (!this.shownLoadErrorPopup) { this.shownLoadErrorPopup = true; VRCUiManager.Instance.popups.ShowStandardPopup("Error", "Couldn't load Terms of Service. Please try again later.", "Close", delegate { VRCUiManager.Instance.popups.HideCurrentPopup(); }, null); } }