public MinimapVrNavigationMode(IGlobalObjectService globalObjectService, IRenderService renderService, IInputService inputService,
                                IRayHitIndex rayHitIndex, IStoryService storyService, IVrHeadPositionService headPositionService)
 {
     this.globalObjectService = globalObjectService;
     this.renderService       = renderService;
     this.inputService        = inputService;
     this.rayHitIndex         = rayHitIndex;
     this.storyService        = storyService;
     this.headPositionService = headPositionService;
 }
Esempio n. 2
0
 public TutorialScenarioOld(IWorldTreeService worldTreeService, INavigationService navigationService, IVrInputDispatcher vrInputDispatcher,
                            IGlobalObjectService globalObjectService, IVrHeadPositionService headPositionService)
 {
     this.worldTreeService    = worldTreeService;
     this.navigationService   = navigationService;
     this.vrInputDispatcher   = vrInputDispatcher;
     this.globalObjectService = globalObjectService;
     this.headPositionService = headPositionService;
     cleanUpList  = new List <GameObject>();
     stageRoomIds = new int[6];
 }
 public AdvancedVrInputDispatcher(IMessagePopupService messagePopupService, IReadOnlyList <IVrNavigationMode> navigationModes,
                                  IEventRoutingService eventRoutingService, IUserQueryService userQueryService,
                                  IVrHeadPositionService headPositionService, IGlobalObjectService globalObjectService)
 {
     this.messagePopupService            = messagePopupService;
     this.userQueryService               = userQueryService;
     this.headPositionService            = headPositionService;
     this.globalObjectService            = globalObjectService;
     this.NavigationModes                = navigationModes.Where(x => !(x is IMinimapVrNavigationMode)).ToArray();
     this.minimapVrNavigationMode        = navigationModes.OfType <IMinimapVrNavigationMode>().Single();
     minimapVrNavigationMode.ZoomEnabled = true;
     eventRoutingService.Subscribe <INewFrameEvent>(typeof(IVrInputDispatcher), nameof(OnNewFrame), OnNewFrame);
     eventRoutingService.Subscribe <IFixedUpdateEvent>(typeof(IVrInputDispatcher), nameof(OnFixedUpdate), OnFixedUpdate);
     capabilities = VrInputDispatcherCapabilities.All;
 }
Esempio n. 4
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;
 }