using System.Collections; using System.Collections.Generic; using UnityEngine; public class FollowTarget : MonoBehaviour { [SerializeField] private Transform target; [SerializeField] private Vector3 offSet = new Vector3(); // Update is called once per frame private void LateUpdate() { if (target == null) return; this.transform.position = target.position + offSet; } }