コード例 #1
0
        /// <summary>
        /// Deep clone with the given original Node.
        /// </summary>
        internal override void Copy(AIControllerSerializer serializer, Node originalNode)
        {
            base.Copy(serializer, originalNode);
            EntryState original = (EntryState)originalNode;

            m_output = serializer.GetCopyOf(original.m_output);
        }
コード例 #2
0
        internal void Copy(AIControllerSerializer serializer, AIController original)
        {
            isCopy       = true;
            m_entryState = serializer.GetCopyOf(original.m_entryState);
            m_anyState   = serializer.GetCopyOf(original.m_anyState);

            m_nodes = new List <Node> ();
            foreach (Node originalNode in original.m_nodes)
            {
                m_nodes.Add(serializer.GetCopyOf(originalNode));
            }
        }