Exemple #1
0
    // Once it's valid to spawn a new shape it will spawn
    IEnumerator CheckLines()
    {
        // Check for full line
        LineSplitter.CheckForFullLine(_blockGrid);

        yield return(new WaitUntil(() => LineSplitter.spawnNext == true));

        // Spawn a new block
        shapeGenerator.SpawnShape();
    }