I want to do something like this but in top down: https://youtu.be/4zm8CvJPGb8. I don't know how to do it.
Actually I would do exactly as the video you share does it, but the camera will be positioned at the top, using Raycast
instead of Raycast2D
.