Creating static events?
I'm trying to create an Event system within my game so that I can chain components together. One example of this would be an InputManager handling an event where after the player presses "WASD" keys, the movement script subscribes to the event and runs.
What is the optimal way of doing this? Should I make the InputManager a static class to access the events from all my other scripts, or should I just run FindObjectOfType for every other script?
Thanks!
Your answer
Follow this Question
Related Questions
Unity Events not registering a function due to custom parameters 0 Answers
UnityAction/UnityEvent - remove listener from within delegate 1 Answer
Unity Event that returns mouse over 0 Answers
How to set up multiple Delegate overrides ? 1 Answer
How to detect if button is created under a mouse pointer taking into account UI hierarchy? 0 Answers