Page 1 of 1

OnConversationEnd not called when spamming with skip button

Posted: Mon Oct 31, 2016 7:52 am
by benzyniarz1
Hello,
I have the following scenario: when conversation is end, some custom logic is called (via MonoBehaviour attached to DialogueSystemController that contains method OnConversationEnd):

Code: Select all

[RequireComponent(typeof(DialogueSystemController))]
public class DoSomethingOnConversationEnd : MonoBehaviour
{
    public void OnConversationEnd()
    {
        ///some logic
    }
}

Everything seems to work flawlessly until player is skipping dialogue lines very fast (button to skip entry is set in DIalgoueSystemController) - then event is not being called. How can make it work?

Re: OnConversationEnd not called when spamming with skip button

Posted: Mon Oct 31, 2016 9:12 am
by Tony Li
Hi,

OnConversationEnd should always be called, regardless of how fast you skip dialogue lines. If you temporarily set the Dialogue Manager's Debug Level to Info, do you see this line in the Console?

Code: Select all

Dialogue System: Ending conversation.
Please feel free to send a reproduction scene to tony (at) pixelcrushers.com. Include the reproduction steps and let me know what version of Unity to use.