void GenerateChunk(GridData chunk) { for (int x = -Mathf.RoundToInt(worldSize.x / 2f); x < Mathf.RoundToInt(worldSize.x / 2f); x++) { for (int y = -Mathf.RoundToInt(worldSize.z / 2f); y < Mathf.RoundToInt(worldSize.z / 2f); y++) { chunk.AddBlock(new Vector2(x, y), 1); } } }