Hello,
I would like to implement in my "Game Event System" some notification to send to the observers (for instance: the game manager) whenever a conversation ends.
I cannot use the "Dialogue System Events", because I need to specify an ID (string, for instance) to have a different reaction to different conversations.
What's the best approach to implement this?
How to send UnityAction when some conversation ends
Re: How to send UnityAction when some conversation ends
Hi,
If you use Dialogue System Events, your observers can check DialogueManager.lastConversationStarted to know what conversation ended.
Otherwise you can add an OnConversationEnd(Transform actor) method to a script on the Dialogue Manager and check DialogueManager.lastConversationStarted in that method.
If you use Dialogue System Events, your observers can check DialogueManager.lastConversationStarted to know what conversation ended.
Otherwise you can add an OnConversationEnd(Transform actor) method to a script on the Dialogue Manager and check DialogueManager.lastConversationStarted in that method.
Re: How to send UnityAction when some conversation ends
Thanks so much for this! Works great!
Re: How to send UnityAction when some conversation ends
Glad to help!
Re: How to send UnityAction when some conversation ends
perfect, thank you very much!