Пример #1
0
 public void Progress(ConversationObject conversation)
 {
     // Reset the conversation if it's different.
     if (conversation != _targetConversation)
     {
         ResetConversation();
     }
     // Start a new conversation.
     if (_elementIndex == 0)
     {
         StartConversation(conversation);
         conversation.GetElements()[_elementIndex].Display(_conversationContainer);
         _elementIndex++;
     }
     // End the conversation.
     else if (_elementIndex == conversation.GetElements().Length)
     {
         EndConversation();
     }
     // Progress otherwise.
     else
     {
         conversation.GetElements()[_elementIndex].Display(_conversationContainer);
         _elementIndex++;
     }
 }