Example #1
0
        private void Awake()
        {
            GameExceptionHandler.AddExceptionTypeToIgnore(typeof(ConnectionException));

            var stateControllerFactory = new StateControllerFactory();

            _stateController = stateControllerFactory.Create();
        }
Example #2
0
        private void Awake()
        {
            DontDestroyOnLoad(transform.gameObject);

            _photonClient = CreateClient();
            PlayerCommands.PhotonClient = _photonClient;

            CreatePopupController();

            var stateControllerFactory = new StateControllerFactory(_photonClient);

            _stateController = stateControllerFactory.Create();
        }