Esempio n. 1
0
    public void SelectPiece(Piece piece)
    {
        PieceObject pieceObject = pieces[piece.position.x, piece.position.y];

        pieceObject.SelectPiece();
        SelectTiles(piece.GetValidDestinations(GetChess().state));
    }
Esempio n. 2
0
    public void SelectPiece(PieceObject pieceObject)
    {
        pieceObject.SelectPiece();
        Piece piece = GetPiece(pieceObject.position);

        SelectTiles(piece.GetValidDestinations(chess.state));
    }