유니티 C# 캐릭터 3인칭 카메라 따라가기 Follow Camera


유니티 C# 캐릭터 3인칭 카메라 따라가기 Follow Camera

코드 작성 using System.Collections; using System.Collections.Generic; using UnityEngine; public class FollowCamera : MonoBehaviour { public GameObject target; public float offsetX = 0.0f; public float offsetY = 0.0f; public float offsetZ = 0.0f; Vector3 targetPos; void FixedUpdate() { targetPos = new Vector3(target.transform.position.x + offsetX,target.transform.position.y + offsetY,target.transform..


원문링크 : 유니티 C# 캐릭터 3인칭 카메라 따라가기 Follow Camera