Example #1
0
 void Start()
 {
     MainAgentContainer.Find().Create("WorkerAgent", typeof(WorkerAgent).FullName, new object[] { this }, null);
     if (gameObject.GetComponent(typeof(BackpackComponent)) == null)
     {
         gameObject.AddComponent(typeof(BackpackComponent));
     }
 }
Example #2
0
 void Start()
 {
     rb2d = GetComponent <Rigidbody2D> ();
     object[] args = new object[] { this };
     if (ContainerId == null || ContainerId == "")
     {
         ContainerId = MainAgentContainer.Find().ID;
     }
     MainAgentContainer.Find().Create("EnemyAgent", typeof(EnemyAgent).FullName, args, ContainerId);
     setupLineRenderer();
 }
        override protected void Action()
        {
            AgentContainer container = MainAgentContainer.Find().GetContainer(containerId);

            if (name == null)
            {
                container.RegisterAgent(Agent);
            }
            else
            {
                container.RegisterAgent(Agent, name);
            }
        }
Example #4
0
 void Start()
 {
     MainAgentContainer.Find().Create("CoordinatorAgent", typeof(CoordinatorAgent).FullName, new object[] { this }, null);
 }