public DialogueNode(string name, string text, DialogueVoice voice = DialogueVoice.Normal)
 {
     currentText     = text;
     currentNameText = name;
     currentVoice    = voice;
     nextNodes.Add(new DialogueNode());
 }
 public DialogueNode Add(string name, string text, DialogueVoice voice = DialogueVoice.Normal)
 {
     return(Add(new List <string>()
     {
         name
     }, new List <string>()
     {
         text
     }, new List <DialogueVoice>()
     {
         voice
     }));
 }
        public DialogueNode Add(string name, List <string> texts, DialogueVoice voice = DialogueVoice.Normal)
        {
            List <string> names = new List <string>();

            for (int i = 0; i < texts.Count; i++)
            {
                names.Add(name);
            }
            return(Add(names, texts, new List <DialogueVoice>()
            {
                voice
            }));
        }
        AudioClip[] GetRightAudioClips(DialogueVoice voice)
        {
            switch (voice)
            {
            case DialogueVoice.Normal:
                return(audioClipsNormal);

            case DialogueVoice.Creepy:
                return(audioClipsCreepy);

            default:
                return(audioClipsNormal);
            }
        }