I'm getting strange error. When I have cursor configured like this:
Cursor.visible = false;
Cursor.lockState = CursorLockMode.Locked;
and hit Escape while runnig game in editor play mode, I'm getting exception
Input Button Fire 1 is not setup
Exception points to line
if (Input.GetButtonDown("Fire 1")) <-- here
//do smth
}
Input works ok unless I press Escape and cursor shows. When I click again in game window, I can't use "Fire 1" anymore.
↧