OnConversationEnd is never called with OnUse()
Posted: Mon Nov 06, 2017 9:30 pm
Hello,
I currently have a setup where I have a custom GameObject which is having four components:
1) A custom interaction script that is executed upon a OnTriggerEnter2D
2) A BoxCollider2D (necessary for my custom script)
3) A Conversation Trigger script
4) A Override Dialogue UI script
Within the Conversation Trigger script inspector, I do set the conversation I want to start upon calling OnUse().
Now, when OnTriggerEnter2D is called in-game on my custom script, I do start a coroutine that is calling the Conversation Trigger > OnUse() method. My dialogue is displayed properly with my overriden UI and all is great. However, my OnConversationEnd() method implementation within my custom script is never called. Is it normal?
I tried calling DialogueManager.StartConversation() instead. When I am calling this instead of OnUse() on the Conversation Trigger, I do get my OnConversationEnd() method called within my custom script, but it does bypass the Override Dialogue UI script since it uses the defaut Dialogue Manager instead. Any way I can force OnUse() to call my OnConversationEnd()?
I currently have a setup where I have a custom GameObject which is having four components:
1) A custom interaction script that is executed upon a OnTriggerEnter2D
2) A BoxCollider2D (necessary for my custom script)
3) A Conversation Trigger script
4) A Override Dialogue UI script
Within the Conversation Trigger script inspector, I do set the conversation I want to start upon calling OnUse().
Now, when OnTriggerEnter2D is called in-game on my custom script, I do start a coroutine that is calling the Conversation Trigger > OnUse() method. My dialogue is displayed properly with my overriden UI and all is great. However, my OnConversationEnd() method implementation within my custom script is never called. Is it normal?
I tried calling DialogueManager.StartConversation() instead. When I am calling this instead of OnUse() on the Conversation Trigger, I do get my OnConversationEnd() method called within my custom script, but it does bypass the Override Dialogue UI script since it uses the defaut Dialogue Manager instead. Any way I can force OnUse() to call my OnConversationEnd()?