Example #1
0
    int CurrentIndex; //Here we are assuming we have not yet optimized the code such that CurrentID = CurrentIndex. when this is done, there will be no need for searching anything


    void Start()
    {
        Dialogue = new DialogueScript();
        Dialogue.Load(File);


        Dictionary = Translator.GetComponent <TranslatorScript>();

        Message = "";

        DecisionList = new List <string>();

        CurrentAddress = 0;
        CurrentIndex   = Dialogue.Dialogue.DialogueList.FindIndex(x => x.Address == CurrentAddress);
        Continue();

        Dictionary.AddElement("@name", VarType._INT, "9");
        Dictionary.AddElement("@gender", VarType._STRING, "Male");

        Debug.Log(EvaluateProposition("@gender == #Male"));
    }