Ejemplo n.º 1
0
    static void MenuGenerateGridAll()
    {
        State newState = new State(1);

        newState.scale = new Vector3(0.2f, 0.2f, 0.2f);
        int b = 1;

        for (int x = 0; x < 20; x++)
        {
            for (int y = 0; y < 15; y++)
            {
                newState.position.x = 0f + x;
                newState.position.y = 0f + y;
                Manipulate.CreateObject(newState, b);
                b++;
                if (b > 17 && b < 25)
                {
                    b = 25;
                }
                if (b > 89 && b < 144)
                {
                    b = 144;
                }
                if (b == 206)
                {
                    b = 207;
                }
                if (b > 251)
                {
                    b = 1;
                }
            }
        }
    }
Ejemplo n.º 2
0
    static void MenuDuplicate()
    {
        State newState = cloneExistingState();

        Manipulate.CreateObject(newState, cloneExistingB());
    }