Exemple #1
0
        public override uint CreateAgent(GridCoords pos, GridAgentBase.GridAgentBrain brain)
        {
            GridAgent agent = GameObject.Instantiate(AgentPrefab) as GridAgent;

            agent.transform.SetParent(transform);
            agent.Init(this, brain, pos);
            mAgents[agent.ID] = agent;
            PlaceAgentInCell(agent, pos.index);

            return(agent.ID);
        }
Exemple #2
0
 public abstract uint CreateAgent(Coords pos, GridAgentBase.GridAgentBrain brain);