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