private void LateUpdate() { if (playerController == null) { return; } var targetPosition = playerController.GetCameraTargetPosition(MaxRadiusSqr); transform.position = Vector3.Lerp(transform.position, targetPosition, TransitionSpeed * Vector3.Distance(transform.position, targetPosition)); }