示例#1
0
 public void SendTextToPanel()
 {
     string[] dialogString = splitText(Text [SaveTalkNumber]);
     Debug.Log(SaveTalkNumber);
     if (IsAlreadyShow [SaveTalkNumber])
     {
         TalkPanel.SetActive(true);
         string panelString = null;
         for (int i = 0; i < dialogString.Length; i++)
         {
             panelString += dialogString [i];
         }
         PanelText.text = panelString;
     }
     else
     {
         DialogWindow.SetActive(true);
         IsAlreadyShow [SaveTalkNumber] = true;
         Dialog.AssignText(dialogString);
         DialogText.text = dialogString [0];
     }
     save();
 }
示例#2
0
 public void SendText()
 {
     Dialog.AssignText(conversation);
     dialogText.text = conversation [0];
 }