예제 #1
0
 private void close()
 {
     if (chatMessage != null)
     {
         chatMessage.Discard();
         UIChatMenu.Hide();
     }
 }
예제 #2
0
 private void responseSelected(TopicQuestion response)
 {
     if (selectionCallback != null)
     {
         selectionCallback(response);
     }
     else
     {
         GameController.instance.TriggerEvent(response.trigger);
         UIChatMenu.Hide();
         _message.Discard();
     }
 }
예제 #3
0
    private void questionSelected(TopicQuestion question)
    {
        if (question.trigger == null)
        {
            chatMessage.Discard();
        }
        else
        {
            chatMessage = null;

            if (question.trigger.Equals(string.Empty))
            {
                Topic topic = NeverdawnDatabase.GetTopic(question.topicId);
                selectedEvent = topic.defaultEvent;
            }
            else
            {
                selectedEvent = EventController.FindEvent(question.trigger);
            }

            selectedEvent.ResetEvent();
        }
    }