Esempio n. 1
0
    void Start()
    {
        SampleCollection pathPointPosition = new SampleCollection();

        splineComputer.GetSamples(pathPointPosition);
        path          = pathPointPosition.samples;
        ourProjection = new List <Vector3>();

        Vector3 first = path[0].position;

        first.x += offset;

        ourProjection.Add(first);
        moveTo    = path[currentIndex].position;
        moveTo.x += offset;
        moveTo.y  = 1.00000f;
    }