Implement a shoot button for Android Device
Good evening, everyone,
Since this morning I've been bothering myself because I just finished a 2D Space Shooter only i can't make the game playable on an android smartphone.
I managed to implement a virtual Joystick to move the Player, but I can't put a button to shoot.
To move the player, i simply declared a public Joystick variable that i called "joystick" and then replaced the Input.GetAxis("Horizontal") by this line of code --> 
 So i simply put joystick.Horizontal + joystick.Vertical. 
The problem is, i have no idea how to do that for the Firing method. Here is the firing code down billow --> 
 If an expert could help me with that i would be very grateful! Thank you very much for reading me.
 
                 
                dsfadsadasdsa.jpg 
                (34.3 kB) 
               
 
                
                 
                dsdfdsfsdf.jpg 
                (24.0 kB) 
               
 
              
               Comment
              
 
               
              Your answer