I’ve made a pause menu using OnGui. The problem I’m having is that when I pause I can still trigger some actions in the game when pressing the buttons on the pause menu. How should I approach this? I was thinking of disabling the inputs but how do I disable the inputs only for the game and not for the pause menu?
For the in-game triggers, I’m using an invisible plane with hit.collider.
have a global manager that knows if you paused or not and all input scripts as that one for pause and stop handling the input.
or register all control scripts with that manager and let it handle start / stop pause and on start of pause, all registered control script are just put on sleep with .enabled = false