Esempio n. 1
0
    public void SetSplineToClosestPoint(Spline s)
    {
        RemoveFromSpline();

        spline = s;

        spline.AddHeadAtPoint(this, spline.GetClosestPoint(this.transform.position));
    }