Too subjective and argumentative
Help with Unity Events
I am using a state machine. I want to do something when I am in a specific state and a trigger is entered. I figure that unity events may be the best way to accomplish this.
I subscribe to the event when the state is entered and unsubscribe when the state is exited. When the trigger is triggered on another object it will do something only when the game is in a certain state.
Does this logic make sense? Is there a better way to do this? I'm having trouble implementing this.
Follow this Question
Related Questions
OnPointerClick only triggers when clicked on the top part of UI Image 1 Answer
UnityEngine.GameObject' does not contain a definition for `SetSelectedGameObject' 0 Answers
ScrollBar and scrollrect seem not working on mobile 0 Answers
Count and find NON-PERSISTENT UnityEvent listeners: How? 1 Answer
Way to assign event fields in created at runtime scriptable object (ScriptableObject Architecture) 0 Answers