public class FollowPositionRig : MonoBehaviour
{
public Transform Target;
public Transform target => m_Target;
[SerializeField]
protected Transform m_Target;
if(Target != null)
if(m_Target != null)
var delta = Target.position - transform.position;
var delta = m_Target.position - transform.position;
}
public void SetTarget(Transform target)
m_Target = target;