I'm encountering a weird problem now.
I want to start a conversation based on a specific entryID, so I wrote this line of code:
Code: Select all
DialogueManager.StartConversation(_currentConversationStarted, GetRegisteredActorTransform("Ethan"), _currentConversantTransform, _currentEntryID);
Code: Select all
if (subtitle.speakerInfo.isNPC)
{
questionText = subtitle.formattedText.text; // the text of entryID of 19 is "abc"
Debug.Log(questionText); // abc