public void Awake()
    {
        targetSmoothingAlgorithm = gameObject.GetComponent <ITargetSmoothingAlgorithm>();

        Offset = transform.position - targetSmoothingAlgorithm.SmoothedTargetPosition;
    }
Esempio n. 2
0
 void Awake()
 {
     targetSmoothingAlgorithm     = GetComponent <ITargetSmoothingAlgorithm>();
     volumeBoundedCameraComponent = GetComponent <VolumeBoundedCamera>();
 }