Beispiel #1
0
    // Start is called before the first frame update
    void Start()
    {
        csvReader = new ReadCSV();
        lineLocs  = new FixedLenQueue <Vector3>(maxQCap);
        lr        = GetComponent <LineRenderer>();

        csvReader.Read(fileName, out csvData, ReadCSV.FileFrom.StramingAssets);

        Vector3 vec = VectorForUnity(csvData.Rows[numInstantiated++]);

        startPosition = car.transform.position = nextPoint = vec;

        lineLocs.Add(vec);
    }