2D FPS shooting

Hello developers, I’m Working on duck shooting game. I’m working on 2D fps shooting system, as you can see in Picture ;
[13915-ekran+alıntısı.jpg|13915]

I’ve used FPS shooter based (A rifle firing it with ammo prefab as picture below ; )

I can often shoot the ducks with this way; Then I changed it to Click to destroy but:
The click ( I use OnMouseEnter because of mobile touch inset) is not working perfectly :frowning:

So does anybody have an idea ? I’ll write the code if you want.

Instead of Click you could try OnMouseDown() { //dfhdoifhdoi; }, Or you could do a raycast and store the object your raycast hits into a variable and do an if statement. Throwing stuff out there