Example #1
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 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;
 }
        public VrPresentationView(IStoryService storyService, INavigationService navigationService, IGlobalObjectService globalObjectService,
                                  IUserQueryService userQueryService, IVrInputDispatcher vrInputDispatcher)
        {
            this.storyService        = storyService;
            this.navigationService   = navigationService;
            this.userQueryService    = userQueryService;
            this.globalObjectService = globalObjectService;
            this.vrInputDispatcher   = vrInputDispatcher;
            camera = new VrCamera(globalObjectService);

            layer = new ViewLayer
            {
                Camera       = camera,
                VisibleScene = null
            };
            Layers = new IViewLayer[]
            {
                layer
            };
        }
        public VrInitializerService(IDiContainer di, Lazy <IRenderService> renderServiceLazy, INavigationService navigationService, IStoryService storyService,
                                    IGlobalObjectService globalObjectService, IUserQueryService userQueryService, IViewService viewService,
                                    IVrInputDispatcher vrInputDispatcher,
                                    IRayHitIndex rayHitIndex, Lazy <IGui> guiLazy)
        {
            this.di = di;
            this.renderServiceLazy   = renderServiceLazy;
            this.navigationService   = navigationService;
            this.storyService        = storyService;
            this.globalObjectService = globalObjectService;
            this.userQueryService    = userQueryService;
            this.vrInputDispatcher   = vrInputDispatcher;
            this.rayHitIndex         = rayHitIndex;
            this.viewService         = viewService;
            this.guiLazy             = guiLazy;

            IsInitialized = false;
            var vrSwitcher = globalObjectService.EventObject.GetComponent <VrSwitcher>();

            vrSwitcher.VrInitialized += Init;
        }