public override bool AddChildren(Node node) { if (node != this) { outputs.Clear(); return base.AddChildren(node); } return false; }
protected virtual bool AddParent(Node node) { int id = m_dialogue.GetID(node); if (node != this) { if(!inputs.Contains(id)) inputs.Add(id); return true; } return false; }
public virtual bool AddChildren(Node node) { int id = m_dialogue.GetID(node); if (node != this) { if (node.AddParent(this)) { if (!outputs.Contains(id)) outputs.Add(id); return true; } } return false; }
public int GetID(Node node) { return nodes.IndexOf(node); }
public void CreateNode() { Node node = new Node(); node.dialogue = this; nodes.Add(node); }
protected override bool AddParent(Node node) { return false; }