Exemple #1
0
 public IEnumerator <YieldInstruction> SetSign(params string[] msgs)
 {
     if (msgs.Length > 0)
     {
         DialogueBox box         = null;
         Action      emptyAction = () => { };
         for (int ii = msgs.Length - 1; ii >= 0; ii--)
         {
             DialogueBox prevBox = box;
             box = new ClickedDialog(msgs[ii], false, (prevBox == null) ? emptyAction : () => { AddMenu(prevBox, false); });
             box.Text.FinishText();
         }
         yield return(CoroutineManager.Instance.StartCoroutine(ProcessMenuCoroutine(box)));
     }
 }
Exemple #2
0
        public DialogueBox CreateBox(MonsterID speaker, string speakerName, EmoteStyle emotion, bool sound,
                                     Action finishAction, int waitTime, string msg)
        {
            DialogueBox box = null;

            if (waitTime > -1)
            {
                box = new TimedDialog(msg, sound, waitTime, finishAction);
            }
            else
            {
                box = new ClickedDialog(msg, sound, finishAction);
            }
            box.SetSpeaker(speaker, speakerName, emotion);
            return(box);
        }