示例#1
0
    // George's stuff

    void Start()
    {
        int startX = 1938;
        int startY = 9281;

        /*
         * GameObject obj = createTerrainObject (
         *      generateMesh(startX, startY),
         *      new Vector3(0, 0, 0),
         *      defaultMaterial,
         *      defaultPhysics);
         */

        //GameObject obj = TerrainGeneration.createTerrainObject(new Vector2(startX, startY), new Vector3(0, 0, 0));

        for (int i = 0; i < 3; i++)
        {
            for (int j = 0; j < 3; j++)
            {
                GameObject obj = TerrainGeneration.createTerrainObject(new Vector2(startX + i, startY + j), new Vector3(i, 0, j));
                //Debug.Log (obj.transform.position);
            }
        }
    }