示例#1
0
    public void Move(float speed)
    {
        CurrentT += FollowCurve.GetTIncrement(CurrentT, speed);
        Vector3 newPos = FollowCurve.GetValueAt(CurrentT);

        transform.position = newPos + Offset;
        transform.forward  = FollowCurve.GetForward(CurrentT);
    }