Esempio n. 1
0
 private void ClearCurrentObject()
 {
     if (currentGazeObject != null)
     {
         currentGazeObject.OnGazeExit();
         SetReticleColor(inactiveReticleColor);
         currentGazeObject = null;
     }
 }
Esempio n. 2
0
 private void ClearCurrentObject()
 {
     if (currentGazeObject != null)
     {
         currentGazeObject.OnGazeExit();
         SetReticleColor(originalColor);
         currentGazeObject.Pressed -= HandleGazeablePressed;
         currentGazeObject          = null;
     }
 }
 private void ClearCurrentObject()
 {
     if (currentGazeObject != null)
     {
         //finish looking at the current obj
         currentGazeObject.OnGazeExit();
         //clear the current currentGazeObject
         currentGazeObject = null;
     }
 }
Esempio n. 4
0
    private void ClearCurrentObject()
    {
        if (currentGazeObject != null)
        {
            // when clearing we call @OnGazeExit method
            currentGazeObject.OnGazeExit();

            // then setting the color of reticle back to default (gray)
            SetReticleColor(inactiveReticleColor);

            // clear the object as we are no longer looking at it
            currentGazeObject = null;
        }
    }