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); }
public abstract uint CreateAgent(Coords pos, GridAgentBase.GridAgentBrain brain);