GazeStabilizer iterates over samples of Raycast data and helps stabilize the user's gaze for precision targeting.
Inheritance: UnityEngine.MonoBehaviour
        void Awake()
        {
            /* TODO: DEVELOPER CODING EXERCISE 3.a */

            // 3.a: GetComponent GazeStabilizer and assign it to gazeStabilizer.
            gazeStabilizer = GetComponent <GazeStabilizer>();
        }
Esempio n. 2
0
 private void Awake()
 {
     if (UseBuiltInGazeStabilization)
     {
         GazeStabilization = gameObject.GetComponent <GazeStabilizer>() ??
                             gameObject.AddComponent <GazeStabilizer>();
     }
 }