public void SelectPiece(Piece piece) { PieceObject pieceObject = pieces[piece.position.x, piece.position.y]; pieceObject.SelectPiece(); SelectTiles(piece.GetValidDestinations(GetChess().state)); }
public void SelectPiece(PieceObject pieceObject) { pieceObject.SelectPiece(); Piece piece = GetPiece(pieceObject.position); SelectTiles(piece.GetValidDestinations(chess.state)); }