Update CubesGenerator.cs