System.Collections.Generic.List.Add(xyGrid)

Here are the examples of the csharp api System.Collections.Generic.List.Add(xyGrid) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 View Source File : PointSets.cs
License : GNU General Public License v3.0
Project Creator : subho406

public void UpdatePoints()

    {
        foreach (xyGrid xy in Grid)
        {
            foreach(Transform p in xy.points)
            {
                if(p)
                DestroyImmediate(p.gameObject);
            }
        }
        Grid.Clear();


        for (int i = 1; i <= numpoints; i++)
        {
            Grid.Add(new xyGrid());
            for (int j = 0; j < points.Count; j++)
            {
                Points p = points[j];
                GameObject g = new GameObject();
                g.transform.position = p.firstPoint.transform.position + p.firstPoint.transform.forward * p.sepDist * i;
                g.transform.rotation = p.firstPoint.transform.rotation;
                g.transform.parent = p.firstPoint.transform;
                Grid[i - 1].points.Add(g.transform);
            }
        }


    }