Exemple #1
0
 public void PromotePiece(Piece piece)
 {
     TakePiece(piece);
     if (piece.team == TeamColor.White)
     {
         chessController.CreatePieceAndInitialize(piece.occupiedSquare, piece.team, "QueenWhite");
     }
     else
     {
         chessController.CreatePieceAndInitialize(piece.occupiedSquare, piece.team, "QueenBlack");
     }
 }
Exemple #2
0
 public void PromotePiece(Piece piece)
 {
     TakePiece(piece);
     chessController.CreatePieceAndInitialize(piece.occupiedSquare, piece.team, typeof(Queen));
 }