public IDialogueContext GetDialogueContext()
    {
        ScriptedDialogue dialogue = ScriptableObject.CreateInstance <ScriptedDialogue>();

        dialogue.Init(sentences.ToArray());
        return(dialogue);
    }
    void Init()
    {
        dialogueBundlesDic = new Dictionary <DialogueTypes.Type, ScriptedDialogue>();

        foreach (DialogueBundle bundle in dialogueBundles)
        {
            ScriptedDialogue scripted = CreateInstance <ScriptedDialogue>();
            scripted.Init(bundle.dialogue);
            dialogueBundlesDic.Add(bundle.type, scripted);
        }
    }