Ejemplo n.º 1
0
        public virtual void Init(BehaviorNode node)
        {
            this.m_node = node;
            this.m_id   = this.m_node.GetId();
            int attachmentsCount = node.GetAttachmentsCount();

            if (attachmentsCount > 0)
            {
                for (int i = 0; i < attachmentsCount; i++)
                {
                    AttachmentTask pAttachment = (AttachmentTask)node.GetAttachment(i).CreateAndInitTask();
                    this.Attach(pAttachment);
                }
            }
        }
Ejemplo n.º 2
0
        public virtual void Init(BehaviorNode node)
        {
            Debug.Check(node != null);

            this.m_node = node;
            this.m_id   = this.m_node.GetId();

            int attachmentsCount = node.GetAttachmentsCount();

            if (attachmentsCount > 0)
            {
                for (int i = 0; i < attachmentsCount; i++)
                {
                    BehaviorNode   attachmentNode = node.GetAttachment(i);
                    AttachmentTask attachmentTask = (AttachmentTask)attachmentNode.CreateAndInitTask();

                    this.Attach(attachmentTask);
                }
            }
        }
        public virtual void Init(BehaviorNode node)
        {
            this.m_node = node;

            int attachmentsCount = node.GetAttachmentsCount();
            if (attachmentsCount > 0)
            {
                for (int i = 0; i < attachmentsCount; i++)
                {
                    BehaviorNode attachmentNode = node.GetAttachment(i);
                    AttachmentTask attachmentTask = (AttachmentTask)attachmentNode.CreateAndInitTask();

                    this.Attach(attachmentTask);
                }
            }
        }