Exemple #1
0
 private static void SetNextPiece(BridgeTetris.Tetris.Piece pieceType = null)
 {
     BridgeTetris.Tetris.nextPiece = pieceType ?? BridgeTetris.Tetris.RandomPiece();
     BridgeTetris.Tetris.InvalidateNext();
 }
Exemple #2
0
 private static void SetCurrentPiece(BridgeTetris.Tetris.Piece pieceType)
 {
     BridgeTetris.Tetris.currentPiece = pieceType ?? BridgeTetris.Tetris.RandomPiece();
     BridgeTetris.Tetris.Invalidate();
 }