public void DestroyRows(bool[] isFull, PistonSet set) { for (int i = set.LowestRow(); i < set.NextLowestRow(); ++i) { if (isFull[i]) { DestroyRow(i); } } }
public void MoveRowsDown(bool[] isFull, int[] shiftAmount, PistonSet set) { for (int i = set.LowestRow(); i < set.NextLowestRow(); ++i) { if (!isFull[i]) { MoveRowDown(i, -shiftAmount[i]); } } }
public void SlideDown(bool[] isEmpty, PistonSet set) { isEmptyDebug = isEmpty; setDebug = set; for (int row = set.LowestRow(); row < set.NextLowestRow(); ++row) // must be starting from 0 { if (!isEmpty[row]) { StartCoroutine(SlideDownRow(row)); } } }