Hi,
I have a script like this -
private bool shooting;
private void Shoot()
{
shooting = Input.GetMouseButtonDown(0);
Debug.Log(shooting);
}
The shooting bool never trigger true;
Thank you.
Hi,
I have a script like this -
private bool shooting;
private void Shoot()
{
shooting = Input.GetMouseButtonDown(0);
Debug.Log(shooting);
}
The shooting bool never trigger true;
Thank you.
This GetMouseButtonDown
method takes MouseButton
enum as input so pass eg. MouseButton.Left
to use it.
Was searching the doc for last 4 hours, but could not find it. Thanks.