How do I get the mouse input direction from the center of the screen to trigger an event from the released position of the mouse?

Player controller:
image
Object to click on:
image