private void Awake() { GameExceptionHandler.AddExceptionTypeToIgnore(typeof(ConnectionException)); var stateControllerFactory = new StateControllerFactory(); _stateController = stateControllerFactory.Create(); }
protected override void OnEnter() { try { var exceptionString = GameExceptionHandler.Exception?.ToString(); _messageText.text = exceptionString?.Substring(0, Math.Min(exceptionString.Length, 3000)) ?? Localization.Get("SERVER_DISCONNECT"); _panelVisibility.gameObject.SetActive(true); _buttons.Buttons.BestFit(); Loading.Stop(); GameExceptionHandler.ClearException(); } catch (Exception ex) { LogProxy.Error($"Error entering ErrorStateInput: {ex}"); } }