The abvice above is good so you should follow it. Don’t use 3D physics techniques like using raycast for selection as in 2D that makes sense, especially using a degenerate raycast of zero length.
Finally, I would ask that you use code-tags for this post and ones for the future, thanks.