IEnumerator ProcessFullRows(RowsFullEvent e) { var sorted = e.RowIndexes.Cast <int> ().OrderByDescending(i => i); foreach (int i in sorted) { yield return(StartCoroutine(Grid.DestroyRow(i))); } SpawnTetromino(); }
private void RowsFullEventHandler(RowsFullEvent e) { StartCoroutine(ProcessFullRows(e)); }