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