using UnityEngine; public class IVTraceObject : MonoBehaviour { [SerializeField] protected Transform trfTarget; protected Transform trfSelf; //protected float fOffsetY; protected void Start() { trfSelf = transform; } //public void SetCameraTarget(Transform trftarget) //{ // trfTarget = trftarget; // trfSelf = GetComponent(); // fOffsetY = foffsety; //} //protected void SetPosition() //{ // Vector2 v2pos = trfTarget.position; // v2pos.y += fOffsetY; //} protected void LateUpdate() { //SetPosition(); trfSelf.position = trfTarget.position; } }