I have an issue with managing Dialogue Databases and couldn't find any information how to solve this particular issue.
Basically I want to set via code, database from scriptableObject in Dialogue System Trigger
Code: Select all
public void OnPointerClick(PointerEventData eventData)
{
DialogueSystemTrigger dialogueSystemTrigger = GetComponent<DialogueSystemTrigger>();
dialogueSystemTrigger.selectedDatabase = sideQuest.dialogueDatabase;
}
The problem is: it start conversation of my IntroDatabase not from Database that is attached to scriptableObject.
I've also tried to
Code: Select all
DialogueManager.Instance.gameObject.GetComponent<DialogueSystemController>().initialDatabase = sideQuest.dialogueDatabase;
Should I use ExtraDatabases component for this workflow and if yes, could you elaborate a bit more how to properly do this?
I appreciate any help.
Best,
Miodek_ENT