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); }
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; }
public void FreeLine(CAIController value) { m_Frees.AddLast(value); m_LineWorkers.Remove(value); m_LineReturnNest.Remove(value); }