InterfaceManager - Turn user input on and off
Why is it important to be able to turn user input on and off in games? Well, there are many situations where you need full control over user input. For example, imagine an exciting cutscene where an important story is being told. In those moments, you might want to prevent the player from accidentally pressing buttons and interrupting the experience. But you may also want to disable user input when loading content or transitioning between different game scenes. With the InterfaceManager, you can easily disable user input and ensure that cutscenes and other transitions run smoothly.
This is how you can disable user input:
InterfaceManager.service?.DisableInput();
And enable it again like this:
InterfaceManager.service?.EnableInput();
Granted, this is probably the smallest manager within Awesome Accessories. What else do you think should be part of an InputManager?
Your Feedback is important!
What do you think of the services presented here? Is there anything missing or does something not work as expected? As always, I'm happy to listen to your feedback. Let me know what you think about this module. You can use the comment section below the article for this. You can also find other ways to contact me here. If you found a bug or want an enhancement, please create an issue in the GitHub repository. Further documentation can be found in the README of the corresponding module.
There are no comments yet.