void Start() { cam = GetComponent <Camera>(); camTracker = GetComponentInParent <CameraTracking>(); }
void Start() { cam = GetComponent <Camera>(); // get camera component camTracker = GetComponentInParent <CameraTracking>(); // get CameraTracking component }