- Home /
Question by
Sinaki · Aug 16, 2017 at 08:17 AM ·
androidtouchscreentouch screen
Problem about create shooting button for android in FPS game
Hi I'm trying from a month ago until now to make a shooting button for FPS game for android devices with easy touch but i failed. And my last hope is there. When i connect my android device to unity with unity remote without i create button,when i touch anywhere of the screen,player start to shooting. In input setting shooting is set on mouse 0. I want create a button,when i touch it player start to shooting. I use realistic FPS prefab asset. Please help me.
Comment
Answer by ItzChris92 · Aug 16, 2017 at 08:26 AM
Just create a canvas overlay, and the button. Drag the object containing your shoot method onto the buttons event system. Call Shoot () onClick of the button