I'm making a dialogue system for a small 2d rpg.
I Have a Dialogue class with two lists for pages and responses. The response class
has a UnityEvent so i can use the ui in the inspector to set methods like a button.
Then in a DialogueManager class i have a
Show() method which makes a button for every response in the list from Dialogue. The problem is when i try to set the created button's
OnClick() event to the UnityEvent in the response.
So the question is how can i set the button's
OnClick() to the methods in the UnityEvent from the response?