public void Move(float speed) { CurrentT += FollowCurve.GetTIncrement(CurrentT, speed); Vector3 newPos = FollowCurve.GetValueAt(CurrentT); transform.position = newPos + Offset; transform.forward = FollowCurve.GetForward(CurrentT); }