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); } } }
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); } } }