public Grid(int width, int height, float cellSize) { this.width = width; this.height = height; this.cellSize = cellSize; gridArray = new int[width, height]; for (int y = 0; y < gridArray.GetLength(1); y++) { for (int x = 0; x < gridArray.GetLength(0); x++) { Testing.CreateCube(GetWorldPosition(x, y)); } } }