Exemple #1
0
 void SetUpList()
 {
     for (int i = 0; i < 3; i++)
     {
         pieceList.Add(RandomTetris.GetPiece());
     }
 }
Exemple #2
0
        public PieceType GrabNext()
        {
            pieceList.Add(RandomTetris.GetPiece());

            PieceType pieceToReturn = pieceList[0];

            pieceList.RemoveAt(0);

            return(pieceToReturn);
        }