Ejemplo n.º 1
0
    /// <summary>
    /// Load a DialogueTree from the given SerializableTree.
    /// </summary>
    public static DialogueTree LoadDialogue(SerializableTree dialogue)
    {
        SerializableTree dlg;

        if (dialogue.TryInstantiateTree(out dlg))
        {
            DlgInstance = dlg;
        }

        return(dlg.ImportTree());
    }