on an update function in C#, how would I convert this from saying "If Input.GetButton(“fire1”) to doing the same thing but for mobile gui? Pretty much, this only works for the PC by clicking the mouse button, but im asking how do I make it to where it does the same thing but by clicking on a GUI button? heres the code:
if(Input.GetButton("Fire1")) {
// Player wants to shoot...so. Shoot.
netChar.FireWeapon(Camera.main.transform.position, Camera.main.transform.forward);
}