(2D shooter) How do I make the Gun shoot where the cursor is?

In short, I want the bullet go to the position the cursor.