Action On Conversation End
Posted: Thu Jun 29, 2017 3:34 pm
Hello all!
I am trying to learn how to execute functions on conversation end, but I am having some difficulties. I am starting the conversation with:
... inside of a coroutine attached to an NPC. When the conversation finishes, I'm trying to run a simple test:
I attached DialogueSystemEvents script to the NPC and added a new OnConversationEnd using EndConversation().
I also perused the Forum but wasn't sure how to get the OnConversationEnd(Transform object) to work.
Any help would be much appreciated.
Thanks!
I am trying to learn how to execute functions on conversation end, but I am having some difficulties. I am starting the conversation with:
Code: Select all
DialogueManager.StartConversation ("New Conversation 2");
Code: Select all
public void EndConversation(){
Debug.Log("EndConversation() called");
}
I also perused the Forum but wasn't sure how to get the OnConversationEnd(Transform object) to work.
Any help would be much appreciated.
Thanks!