Esempio n. 1
0
 protected virtual void showNextStep(int stepId)
 {
     _dialogOpenMark = true;
     _dialogStepData = _dialogData.dialogueList[stepId];
     _iconComponent.setIconId(_dialogStepData.npcId);
     _txt.text = _dialogStepData.content;
     Open();
 }
Esempio n. 2
0
 public void decode(XmlElement node)
 {
     id = Convert.ToInt32(node.GetAttribute("id"));
     XmlNodeList nodeList = node.GetElementsByTagName("Step");
     dialogueList = new Dictionary<int, MTBDialogueStepData>();
     foreach (XmlElement item in nodeList)
     {
         MTBDialogueStepData data = new MTBDialogueStepData();
         data.decode(item);
         dialogueList.Add(data.id, data);
     }
 }