/// <summary> /// Resolve dependencies method /// </summary> protected override void ResolveDependencies() { base.ResolveDependencies(); this.spatialMappingService = WaveServices.GetService <SpatialMappingService>(); if (this.spatialMappingService != null) { Debug.WriteLine("GazeCollision component require the SpatialMappingService"); } }
/// <summary> /// Resolve dependencies method /// </summary> protected override void ResolveDependencies() { base.ResolveDependencies(); this.spatialMappingService = WaveServices.GetService<SpatialMappingService>(); if (this.spatialMappingService != null) { Debug.WriteLine("GazeCollision component require the SpatialMappingService"); } }
/// <summary> /// Initialize the component /// </summary> protected override void Initialize() { base.Initialize(); this.spatialMappingService = WaveServices.GetService<SpatialMappingService>(); if (this.IsConnected) { // Do a first update this.spatialMappingService.UpdateSurfaces(this.OnSurfaceChanged, true); // start the timer this.RefreshTimer(); } }