Posted May 19, 2023 by will2781
This is the controller disconnect script
The script checks for any connected gamepad.
If there is no gamepad found it will display the controller disconnected overlay
If you are in a level and are not currently on any of the pause screens or lose screen, the pause screen will be opened.
This is so that the game will pause rather than putting you straight back in after re-connecting.