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

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