public Vector3 start = new Vector3(-10,-10,-10);
public Vector3 end = new Vector3(10,10,10);
public float moveTime = 3;
private float currentTime= 0;
public void Update()
{
currentTime += Time.deltaTime;
var t = currentTime / moveTime;
transform.position = Vector3.Lerp(start, end, t);
}
Писал прям сюда, так что могут быть ошибки