public void GetData(DialogSender sender) { if (sender == null) { CurrentSender = null; return; } m_CurrentIndex = 0; CurrentSender = sender; m_MaxIndex = sender.dialog.messages.Count; DialogProgress(); }
private void DialogProgress() { if (m_CurrentIndex < m_MaxIndex && !m_CurrentSender.dialog.m_EndDialog) { MessageTextHolder.text = m_CurrentSender.dialog.messages[m_CurrentIndex].Content; m_CurrentIndex++; } else { m_CurrentSender.dialog.m_EndDialog = true; if (CurrentSender.Quest != null) { //TODO Ghablan Inja Ham QuestInWorld Null CHeck Shode bood QuestManager.Instance.QuestUi.SetData(CurrentSender.Quest); QuestManager.Instance.QuestUi.ToggleVisual(true); } CurrentSender = null; } }
private void OnCompeleteDialog(DialogSender sender) { throw new System.NotImplementedException(); }