void Awake() { /* TODO: DEVELOPER CODING EXERCISE 3.a */ // 3.a: GetComponent GazeStabilizer and assign it to gazeStabilizer. gazeStabilizer = GetComponent <GazeStabilizer>(); }
private void Awake() { if (UseBuiltInGazeStabilization) { GazeStabilization = gameObject.GetComponent <GazeStabilizer>() ?? gameObject.AddComponent <GazeStabilizer>(); } }