private void close() { if (chatMessage != null) { chatMessage.Discard(); UIChatMenu.Hide(); } }
private void responseSelected(TopicQuestion response) { if (selectionCallback != null) { selectionCallback(response); } else { GameController.instance.TriggerEvent(response.trigger); UIChatMenu.Hide(); _message.Discard(); } }
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(); } }