예제 #1
0
    void SetCamTarget(GameObject _poseTo)
    {
        CameraSpring       camMovement     = mainCameraObject.GetComponent <CameraSpring>();
        CameraTargetFinder camTargetFinder = GetCameraTargetFinder();

        if (camMovement)
        {
            camMovement.SetOwner(_poseTo.transform);  // 카메라 타겟을 바꿔줌
        }
        if (camTargetFinder)
        {
            camTargetFinder.owner = _poseTo.transform;
        }
    }
예제 #2
0
 private void Start()
 {
     cameraTransform = transform;
     cameraSpring    = GetComponentInChildren <CameraSpring>();
 }