How do I disable movement, controller inputs etc. when a scene is loaded?

In my game I want to have a warning screen when a scene is loaded. I want scripts to be disabled like movement and many more scripts so that the player only has the option to click a button when the scene is loaded. After clicking the button the player can use controls etc. again. How can that be done? Thank you in advance.

Kind regards

I would use a Canvas that is enabled when the scene loads and a simple boolean flag that disables the controls. When the button is clicked you can change the boolean and disable the Canvas to make it go away.

The scripts that need to be disabled can simply return if the boolean shows they should be disabled and that will prevent them from doing anything until the button has been clicked. Very little overhead in doing such a simple check right at the start of the methods affected

In a game I am doing now I use such a canvas to have the user configure that game at the start, as there are several settings that can be customized before game play starts.