How can I make flipping object position using Raycast 2d ?

Please read this post for how you can add code nicely on the forums (perhaps you can edit your post so it’s easier for viewers to read): Using code tags properly