コード例 #1
0
ファイル: GameBehaviour.cs プロジェクト: playgen/it-alert
        private void Awake()
        {
            GameExceptionHandler.AddExceptionTypeToIgnore(typeof(ConnectionException));

            var stateControllerFactory = new StateControllerFactory();

            _stateController = stateControllerFactory.Create();
        }
コード例 #2
0
        private void Awake()
        {
            DontDestroyOnLoad(transform.gameObject);

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

            CreatePopupController();

            var stateControllerFactory = new StateControllerFactory(_photonClient);

            _stateController = stateControllerFactory.Create();
        }