Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
 private void RowsFullEventHandler(RowsFullEvent e)
 {
     StartCoroutine(ProcessFullRows(e));
 }