I'm working on a weapon that has 2 modes. When I switch to it and use mode 1 it works if I use this code: if Code (csharp): (Input.GetButton ("Fire1") That is the left mouse button. What would I put for the right mouse button? I can use something like: if Code (csharp): (Input.GetKey ("g") and there is no problem mode 2 works fine. I want it to do the right mouse button. I tried Getkey ("mouse2) and GetButton ("Fire2"), I'm confused as to what to put for the right mouse button using either the GetKey or GetButton. I can live with a key on the keyboard, the right mouse button would just be so much more comfortable.
Code (csharp): if(Input.GetButton("Fire2")); Thats what you should use. make sure that fire 2 is mouse 3 in the input manager (for middle mouse button).