Esempio n. 1
0
        public virtual CAIController OnNestSpawnMember(CAIController instance)
        {
            var memberController = Instantiate(instance);

            memberController.transform.SetParent(m_AntRoot.transform);
            memberController.SetPosition(m_Transform.position);
            memberController.SetNest(this);
            return(memberController);
        }
Esempio n. 2
0
 public void RemoveLineReturnNest(CAIController value)
 {
     if (m_LineWorkers.Contains(value) == true)
     {
         return;
     }
     if (m_LineReturnNest.Contains(value) == false)
     {
         return;
     }
     m_Frees.AddLast(value);
     m_LineWorkers.Remove(value);
     m_LineReturnNest.Remove(value);
 }
 public FSMControlState(IContext context) : base(context)
 {
     m_Controller = context as CAIController;
 }
Esempio n. 4
0
 public void FreeLine(CAIController value)
 {
     m_Frees.AddLast(value);
     m_LineWorkers.Remove(value);
     m_LineReturnNest.Remove(value);
 }