Пример #1
0
        public void AddChild(LMAgent agent)
        {
            if (agent.InGroup)
            {
                return;
            }

            m_Children.Add(agent);
        }
Пример #2
0
        public void RemoveChild(LMAgent agent)
        {
            if (!agent.InGroup)
            {
                return;
            }

            m_Children.Remove(agent);
        }
Пример #3
0
        public void RegisterAgent(int entityId)
        {
            LMAgent agent;

            if (!m_Entities.TryGetValue(entityId, out agent))
            {
                agent = new LMAgent(entityId);
            }
        }
Пример #4
0
        public static void CreateGroup(LMAgent agent)
        {
            var group = new LMGroup();

            group.AddChild(agent);
        }