Oh, most likely it gets called before the game state is initialised. I updated it with a more reliable fix for that.
You may also want to check that the current scene isn’t a menu, if the player can open one while the Switch is ON.
Edit: Typos.
You may also want to check for whether that the current scene isn’t a menu, if the player can open one while the Switch is ON.
Yea I noticed that. Thanks for your help!