示例#1
0
 /// <summary>
 /// The TrocarPecaAtual
 /// </summary>
 private void TrocarPecaAtual()
 {
     GuardarBlocos();
     CurrentPiece = NextPiece.Clone();
     NextPiece    = CreateRandomBlock();
     Stats.IncludeBlock();
     OnRefresh?.Invoke();
 }
        public object Clone()
        {
            TetrisPieceWithPosition clone = new TetrisPieceWithPosition {
                NextPiece = (TetrisPiece)NextPiece.Clone(),
                Piece     = (TetrisPiece)Piece.Clone(),
                Position  = (Coordinates)Position.Clone()
            };

            return(clone);
        }