I would like to know when the conversation 1's node end happen and get the title to do somthing.
Are there one direct way to get that?
I had a idea to deal that,such like using dialugue system event's "OnConversationLineEnd "to get every ConversationState,and then in "OnLinkedConversationStart" to get last conversation.
code is like :
Code: Select all
PixelCrushers.DialogueSystem.ConversationState[] cArray = new PixelCrushers.DialogueSystem.ConversationState[2];
int cArrayCount=0;
Code: Select all
cArray[cArrayCount%2] =PixelCrushers.DialogueSystem.DialogueManager.CurrentConversationState;
cArrayCount++;
Code: Select all
int lastIndex=0;
if(cArrayCount % 2==0)
{
lastIndex=1;
}
Debug.Log(PixelCrushers.DialogueSystem.DialogueManager.MasterDatabase.GetConversation(cArray[lastIndex].subtitle.dialogueEntry.conversationID).Title);
Are there one better way to get that?