예제 #1
0
 public void GetData(DialogSender sender)
 {
     if (sender == null)
     {
         CurrentSender = null;
         return;
     }
     m_CurrentIndex = 0;
     CurrentSender  = sender;
     m_MaxIndex     = sender.dialog.messages.Count;
     DialogProgress();
 }
예제 #2
0
        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;
            }
        }
예제 #3
0
 private void OnCompeleteDialog(DialogSender sender)
 {
     throw new System.NotImplementedException();
 }