void SetCamTarget(GameObject _poseTo) { CameraSpring camMovement = mainCameraObject.GetComponent <CameraSpring>(); CameraTargetFinder camTargetFinder = GetCameraTargetFinder(); if (camMovement) { camMovement.SetOwner(_poseTo.transform); // 카메라 타겟을 바꿔줌 } if (camTargetFinder) { camTargetFinder.owner = _poseTo.transform; } }
private void Start() { cameraTransform = transform; cameraSpring = GetComponentInChildren <CameraSpring>(); }