Exemple #1
0
        // Use this for initialization
        void Awake()
        {
            //get the gaze manager.
            GazeManager.Update();

            //setup the voice manager.
            // VoiceManager.Init();

            //setup the hands manager.
            HandsManager.Init();

            //Setup spatial mapping.
            MappingManager.Init(this.gameObject);
            MappingManager.DrawMaterial   = WireframeMaterial;
            MappingManager.MappingSize    = SpatialMappingSize;
            MappingManager.MappingSpeed   = SpatialMappingSpeed;
            MappingManager.LevelOfDetail  = MappingLOD;
            MappingManager.Visualize      = VisualizeMap;
            MappingManager.MappingEnabled = MappingEnabled;
        }
Exemple #2
0
        /// <summary>
        /// Updates the gaze manager.
        /// </summary>
        void Update()
        {
            //update the gazemanager.
            GazeManager.Update();

            //check if user enabled mapping.
            if (this.MappingEnabled)
            {
                if (_currentMappingTime < this.MappingDuration)
                {
                    _currentMappingTime += UnityEngine.Time.deltaTime;
                }
                else if (_currentMappingTime >= this.MappingDuration)
                {
                    this.MappingEnabled           = false;
                    MappingManager.MappingEnabled = false;
                    MappingManager.Visualize      = false;
                    _currentMappingTime           = 0;
                }
            }
        }