private void SwapColumnsOfRegions(int seed) { int counter = seed; while (counter >= 0) { int col1 = Random.Range(0, gridWidth); int col2 = Random.Range(0, gridWidth); if (col1 != col2) { shuffler.SwapAreaColumn(col1, col2); counter--; } } }
private void SwapColumnsOfRegions(int seed) { int counter = seed; while (counter >= 0) { int col1 = Random.Range(0, gridWidth); int col2 = Random.Range(0, gridWidth); if (col1 != col2) { shuffler.SwapAreaColumn(col1, col2); counter--; } } }