private bool onRegistrationConfigError(SessionErrorEvents.RegistrationConfigError evt) { Service.Get <ICPSwrveService>().Error("error_prompt", "RegConfigError", SceneManager.GetActiveScene().name); MixLoginCreateService loginService = Service.Get <MixLoginCreateService>(); ErrorData errorData = new ErrorData(evt.TitleToken, evt.MessageToken); errorData.PromptPrefab = promptManager.ErrorPrefab; errorData.Buttons = DPrompt.ButtonFlags.OK; Service.Get <ConnectionManager>().DoPingCheck(delegate(ConnectionManager.NetworkConnectionState connectionState) { if (connectionState == ConnectionManager.NetworkConnectionState.NoConnection) { loginService.RegConfigAttempts = 0; if (!showingError) { showNetworkErrorPrompt("GlobalUI.ErrorMessages.NetworkError.Title", "GlobalUI.ErrorMessages.WorldNetworkError"); } } else { if (!Service.Get <MixLoginCreateService>().IsFetchingRegConfig) { loginService.GetRegistrationConfig(); } showIconPrompt(errorData, NetworkErrorIconContentKey); Log.LogErrorFormatted(this, "Registration Config Error. Step: {0}", evt.Step); } }); return(false); }
private bool onRegistrationConfigError(SessionErrorEvents.RegistrationConfigError evt) { Service.Get <ICPSwrveService>().Error("error_prompt", "RegConfigError", SceneManager.GetActiveScene().name); MixLoginCreateService loginService = Service.Get <MixLoginCreateService>(); ErrorData errorData = default(ErrorData); ref ErrorData reference = ref errorData;