Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        Rocks newRocks = new Rocks();

        newRocks.startPos = start;
        newRocks.endPos   = end;
        newRocks.Prefab   = Rock;

        float ys = newRocks.startPos.y;
        float xs = newRocks.startPos.x;

        float ye = newRocks.endPos.y;
        float xe = newRocks.endPos.x;

        for (float i = ys; i <= ye; i++)
        {
            for (float a = xs; a <= xe; a++)
            {
                newRocks.place(a, i);
            }
        }
    }