Many characters in one dialogue
Posted: Sat Feb 10, 2024 7:05 am
Is there any way to create a dialogue with 3 or more characters using the Dialogue System for Unity? I tried to do this using variables and barks. But I don't know how to control when bark ends. Here's what I tried
This doesn't work either, I tried
But it is called too early, almost immediately after bark starts. Is there some way to make a small dialogue between 3 and more characters?
Code: Select all
public void SayTimeToSleep(Action OnComplete = null)
{
DialogueLua.SetVariable("TimeToSleep", true);
StartCoroutine(CheckBarkConditions());
IEnumerator CheckBarkConditions()
{
while (DialogueManager.IsConversationActive && DialogueManager.CurrentActor == this.transform)
{
yield return null;
}
OnComplete?.Invoke();
}
}
Code: Select all
public void OnBarkEnd(Transform actor){}