public void MoveValues(int indexOfLine) { Blockk temp; while (CheckFullLine(indexOfLine - 1) != false) { for (int j = 0; j < board.GetLength(1); j++) { temp = board[indexOfLine, j]; board[indexOfLine, j] = board[indexOfLine - 1, j]; } indexOfLine--; } for (int j = 0; j < board.GetLength(1); j++) { board[indexOfLine, j] = new Blockk(); } CheckFullLines(); }
public void Clear() { for(int i=0;i<board.GetLength(0);i++) { for(int j=0;j<board.GetLength(1);j++) { board[i, j] = new Blockk(); } } }