I tried using OnConversationLine(Subtitle subtitle),But it seem happened before the sequence command.
I Want to call a function in every conversationLine. but It must be after the sequence command.Could I do this?Thank you.
Could set a Event In every conversation Line after the sequence?
Re: Could set a Event In every conversation Line after the sequence?
Hi,
This is intentional. It gives OnConversationLine an opportunity to change the sequence before it's played.
You can wait until the end of the frame:
Code: Select all
void OnConversationLine(Subtitle subtitle)
{
StartCoroutine(DoAfterSequence(subtitle));
}
void IEnumerator DoAfterSequence(Subtitle subtitle)
{
yield return new WaitForEndOfFrame();
// Code here runs after the sequence has started.
}
Re: Could set a Event In every conversation Line after the sequence?
Thank you!It Works!!