Chunk MakeChunk(Vector3i location) { var chunk = new Chunk(); chunk.cubeSize = cubeSize; chunk.blockMaterial = material; chunk.cubeLegend = cubeLegend; //chunkGameObject.transform.localScale = Vector3.one chunk.gridPosition = location; chunk.cubeObject = this; chunk.dimensionsInCubes = chunkDimensions.Clone(); chunk.gridPosition = location; chunks[location.ToString()] = chunk; return(chunk); }