private void Awake() { GameExceptionHandler.AddExceptionTypeToIgnore(typeof(ConnectionException)); var stateControllerFactory = new StateControllerFactory(); _stateController = stateControllerFactory.Create(); }
private void Awake() { DontDestroyOnLoad(transform.gameObject); _photonClient = CreateClient(); PlayerCommands.PhotonClient = _photonClient; CreatePopupController(); var stateControllerFactory = new StateControllerFactory(_photonClient); _stateController = stateControllerFactory.Create(); }