Exemplo n.º 1
0
    public void GetNextPiece()
    {
        GridObject piece = queue.Dequeue();

        piecesLeft.Value = Mathf.Clamp(piecesLeft.Value - 1, 0, Mathf.Infinity);
        if (piece == null)
        {
            ghostPiece.RemapVolume(new HashSet <Vector3Int>());
        }
        else
        {
            ghostPiece.RemapVolume(piece.volume);
        }
    }