Not to respond to input?

Alright, I’m making the ingame menu now (that is when you are playing and hit escape). SO the menu has two states -
state - true and state - false. Now usually in games when you are in that type of a menu, your player does not respond to the input of the mouse and keyboard, right ? The problem is that if I want to make the player not to respond to the input, I’ll have to put checks everywhere in the player and weapon scripts, that check the state of the menu. Isn’t there an easier way to do this, or this is the only right way to do it?

One option would be to disable any such components when the menu is opened, and then enable them when the menu is closed.

Yeah, that’s a nice idea. Better than the one I had. What about if I change the Input. I can add an extra script, that will trace if the menu state is true and than disable the components.