- Home /
How to make mobile controls shoot prefab bullets
I'm trying to make mobile controls to shoot a prefab bullet. I can shoot using PC controls but ive added mobile UI and I'm using previous script shooting script, but using raycast, as a reference and the ShootGun() isn't appearing in the function list
Where am I going wrong?
Please don't post screenshots of code, post the actual code Also for mobile input you have to call CrossPlatformInput.CrossPlatformInput$$anonymous$$anager.GetButtonDown("Fire1")
The only input recognized on mobile is Input.mouse functions, because it uses One touch as left mouse button, and two touches and right click. Single touch as position, and point between 2 touches for position. As well as Input.touches. Which contains touch info.
it's not working, ive included the "using UnityStandardAssets.CrossPlatformInput;"
but not a peep, even the debug i added doesn't register
Your answer
Follow this Question
Related Questions
Shoot Script 1 Answer
Spawned tree not falling 1 Answer
Destory a single prefab when hit with Raycast 1 Answer
bullet hole problem/raycast problem || help me please 1 Answer
How to open mobile file browsers 1 Answer