input getmousebutton code example
Example: Input.getMouseButton
if (Input.GetMouseButton(2))
{
Debug.Log("Pressed middle click.");
}
if (Input.GetMouseButton(2))
{
Debug.Log("Pressed middle click.");
}