public void Generate(PerlinNoise noise, int seed) { for (int x = 0; x < 16; x++) { for (int y = 0; y < 16; y++) { int height = (int)noise.Get2D(x / 10 + seed, y / 10 + seed) * 50; for (int z = 0; z < height; z++) { m_Array[x, z, y] = new Block(); } } } }