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

Here are the examples of the csharp api System.Collections.Generic.List.Add(gravityMover) 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 : Chapter5Fig1.cs
License : GNU General Public License v3.0
Project Creator : jadlerfisher

void Start()
    {
        //Begin by setting the world gravity to 0
        Physics.gravity = new Vector2(0, -1f);

        //Instantiate a number of gravityMovers
        for (int i = 0; i < moverCount; i++)
        {
            m = new gravityMover();
            gravityMovers.Add(m);
        }
    }