public void deleteAllDisks() { for (int i = 0; i < RackUtil.SIZE; i++) { for (int j = 0; j < RackUtil.SIZE; j++) { var disk = RackUtil.myRack [i] [j].disk; RackUtil.deleteDisk(i, j); Destroy(disk); } } }
public void deleteColumn(int column) { GameUtil.isAnimating = true; for (int i = 0; i < RackUtil.SIZE; i++) { var disk = RackUtil.myRack [i] [column].disk; RackUtil.deleteDisk(i, column); Destroy(disk); } StartCoroutine(ColumnDeleteTask()); GameUtil.playOneShot("Special activate"); }
public void deleteRow(int row) { for (int i = 0; i < RackUtil.SIZE; i++) { var disk = RackUtil.myRack [row] [i].disk; RackUtil.deleteDisk(row, i); Destroy(disk); } GameUtil.isAnimating = true; StartCoroutine(RowDeleteTask(row, 0.5f)); GameUtil.playOneShot("InGameSound"); GameUtil.playOneShot("Special activate"); }