Exemple #1
0
        public override bool AddChildren(Node node)
        {
            if (node != this)
            {
                outputs.Clear();
                return base.AddChildren(node);
            }

            return false;
        }
Exemple #2
0
        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;
        }
Exemple #3
0
        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;
        }
Exemple #4
0
 public int GetID(Node node)
 {
     return nodes.IndexOf(node);
 }
Exemple #5
0
 public void CreateNode()
 {
     Node node = new Node();
     node.dialogue = this;
     nodes.Add(node);
 }
Exemple #6
0
 protected override bool AddParent(Node node)
 {
     return false;
 }