using System.Collections; using System.Collections.Generic; using UnityEngine; public class FollowParent : MonoBehaviour { [SerializeField] private Transform follow; [SerializeField] private Rigidbody rg; private void Update() { transform.position = follow.position; } }