Esempio n. 1
0
        public DialogueLine(string text,string character,string expression,int chIndex,string image,string addition,string special)
        {
            this.text = text;

            if(character!=null)
            {
                this.character = (MainCharacterEnum)System.Enum.Parse(typeof(MainCharacterEnum),character);
                type = DialogueLineType.character;

                if(expression!=null)
                    this.expression = (Expression)System.Enum.Parse(typeof(Expression),expression);

                if(addition!=null)
                this.addition = (AdditionMark)System.Enum.Parse(typeof(AdditionMark),addition);
            }

            this.chIndex = chIndex;

            if(image!=null){
                this.image = image;
                type = DialogueLineType.investigate;
            }

            if(special!=null)
                this.special = special;

            //Debug.Log(type);
            //Debug.Log(text);
        }
 public GE_Dia_Line(DialogueLinePriority p, DialogueLineTag t, Speaker s, string d, string l, string n, Deeper_DialogueEvent_Base f)
 {
     type          = DialogueLineType.Standard;
     priority      = p;
     tag           = t;
     speaker       = s;
     description   = d;
     line          = l;
     audioFileName = n;
     followOnEvent = f;
 }
 public GE_Dia_Line(DialogueLinePriority p, DialogueLineTag t, Speaker s, string d, string c1, string c2, Deeper_DialogueEvent_Base c1E, Deeper_DialogueEvent_Base c2E)
 {
     type         = DialogueLineType.Choice;
     priority     = p;
     tag          = t;
     speaker      = s;
     description  = d;
     choice1      = c1;
     choice2      = c2;
     choice1Event = c1E;
     choice2Event = c2E;
 }