Пример #1
0
    // Use this for initialization
    void Start()
    {
        //create the mesh + renderers + filters
        createMesh();

        //Issue an OnPathUpdated event
        List <Vector3> pathPoints = PathConstants.GetPathPoints();

        OnPathUpdated(pathPoints);
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        dummyParent = new GameObject("Debug Points");
        dummyParent.transform.parent = this.transform.parent;
        List <Vector3> pts = PathConstants.GetPathPoints();

        for (int p_idx = 0; p_idx < pts.Count; p_idx++)
        {
            generatePathPoint(pts[p_idx], p_idx);
        }
    }