1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
using UnityEngine; public class FollowTransform : MonoBehaviour { public Transform target; public Vector3 offset; private void Start() { } private void LateUpdate() { base.transform.position = target.position + offset; } }