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.
23 lines
433 B
23 lines
433 B
using UnityEngine;
|
|
|
|
public class IVTraceSmooth : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
protected Transform trfTarget;
|
|
protected Transform trfSelf;
|
|
|
|
[SerializeField]
|
|
protected float fSmoothSpeed = 0.125f;
|
|
|
|
|
|
|
|
protected void Start()
|
|
{
|
|
trfSelf = transform;
|
|
}
|
|
|
|
protected void LateUpdate()
|
|
{
|
|
trfSelf.position = Vector3.Lerp(trfSelf.position, trfTarget.position, fSmoothSpeed);
|
|
}
|
|
}
|