예제 #1
0
    IEnumerator EndMovement()
    {
        if (_isMoving)
        {
            _isMoving = false;
        }
        yield return(new WaitForSeconds(0.3f));

        AddToGrid();
        _gridController.CheckBlocks();
        while (_gridController.GetIsHighlightingBlocks())
        {
            yield return(new WaitForSeconds(0.1f));
        }

        _spawnerController.SummonNextPiece();
    }