Пример #1
0
 public TutorialScenario(IWorldTreeService worldTreeService, IVrInputDispatcher inputDispatcher,
                         INavigationService navigationService, ICoroutineService coroutineService, IGlobalObjectService globalObjectService,
                         IVrManipulationService manipulationService)
 {
     this.worldTreeService    = worldTreeService;
     this.inputDispatcher     = inputDispatcher;
     this.navigationService   = navigationService;
     this.coroutineService    = coroutineService;
     this.globalObjectService = globalObjectService;
     this.manipulationService = manipulationService;
 }
Пример #2
0
 public NoviceVrInputDispatcher(IMessagePopupService messagePopupService, IReadOnlyList <IVrNavigationMode> navigationModes,
                                IEventRoutingService eventRoutingService, IUserQueryService userQueryService,
                                IVrHeadPositionService headPositionService, IGlobalObjectService globalObjectService, IVrManipulationService vrManipulationService)
 {
     this.headPositionService            = headPositionService;
     this.globalObjectService            = globalObjectService;
     this.vrManipulationService          = vrManipulationService;
     minimapVrNavigationMode             = navigationModes.OfType <IMinimapVrNavigationMode>().Single();
     minimapVrNavigationMode.ZoomEnabled = false;
     freeTeleportMode = navigationModes.OfType <FreeTeleportVrNavigationMode>().Single();
     moveInPlaceMode  = navigationModes.OfType <MoveInPlaceVrNavigationMode>().Single();
     NavigationModes  = new IVrNavigationMode[] { freeTeleportMode, moveInPlaceMode };
     eventRoutingService.Subscribe <INewFrameEvent>(typeof(IVrInputDispatcher), nameof(OnNewFrame), OnNewFrame);
     eventRoutingService.Subscribe <IFixedUpdateEvent>(typeof(IVrInputDispatcher), nameof(OnFixedUpdate), OnFixedUpdate);
     capabilities = VrInputDispatcherCapabilities.All;
 }