OnConversationEnd not called when spamming with skip button

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
benzyniarz1
Posts: 1
Joined: Mon Oct 31, 2016 7:48 am

OnConversationEnd not called when spamming with skip button

Post 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?
User avatar
Tony Li
Posts: 22655
Joined: Thu Jul 18, 2013 1:27 pm

Re: OnConversationEnd not called when spamming with skip button

Post 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.
Post Reply