Exemple #1
0
        /**
         * Creates a single agent for the group.
         *
         * @param UnityEngine.GameObject agentTemplate
         *   The game object template used by the created agent.
         *
         * @return Group.Agent
         *   The created agent.
         */
        private Agent createAgent(GameObject agentTemplate)
        {
            AgentConfig config = new AgentConfig();

            Agent agent = new Agent(config, agentTemplate);

            return(agent);
        }
Exemple #2
0
 /**
  * Constructor.
  *
  * @param Group.AgentConfig config.
  *   The agent configuration object for the agent.
  * @param UnityEngine.GameObject template.
  *   The game objec for the agent.
  */
 public Agent(AgentConfig config, GameObject gameObject)
 {
     this.config     = config;
     this.gameObject = gameObject;
 }