public void Awake() { targetSmoothingAlgorithm = gameObject.GetComponent <ITargetSmoothingAlgorithm>(); Offset = transform.position - targetSmoothingAlgorithm.SmoothedTargetPosition; }
void Awake() { targetSmoothingAlgorithm = GetComponent <ITargetSmoothingAlgorithm>(); volumeBoundedCameraComponent = GetComponent <VolumeBoundedCamera>(); }