Beispiel #1
0
        public void AddReference(InputAGXFileTreeNode reference)
        {
            if (reference == null || m_references.Contains(reference))
            {
                return;
            }

            m_references.Add(reference);
            reference.m_references.Add(this);
        }
Beispiel #2
0
        public void AddChild(InputAGXFileTreeNode child)
        {
            if (child == null)
            {
                Debug.LogWarning("Trying to add null child to parent: " + Type + ", (UUID: " + Uuid.str() + ")");
                return;
            }

            if (child.Parent != null)
            {
                Debug.LogError("Node already have a parent.");
                return;
            }

            child.Parent = this;
            m_children.Add(child);
        }