You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
691 B
35 lines
691 B
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<Transform>();
|
|
// fOffsetY = foffsety;
|
|
//}
|
|
|
|
//protected void SetPosition()
|
|
//{
|
|
// Vector2 v2pos = trfTarget.position;
|
|
// v2pos.y += fOffsetY;
|
|
//}
|
|
|
|
protected void LateUpdate()
|
|
{
|
|
//SetPosition();
|
|
trfSelf.position = trfTarget.position;
|
|
}
|
|
}
|