// Use this for initialization void Awake() { _states = GetComponent <AgentStates> (); _inventory = GetComponent <AgentInventory> (); _pheromonePlacement = GetComponent <AntPheromonePlacement> (); _navHelper = GetComponent <NavAgentHelper> (); }
// Use this for initialization void Awake() { _attack = GetComponent <Attack> (); _states = GetComponent <AgentStates> (); _pheromonePlacement = GetComponent <AntPheromonePlacement> (); _navHelper = GetComponent <NavAgentHelper> (); _randomRadius = _attack.GetAttackRadius(); }
// Use this for initialization void Awake() { navHelper = GetComponent <NavAgentHelper> (); state = GetComponent <AgentStates> (); inventory = GetComponent <AgentInventory> (); agentBase = GameObject.FindWithTag("AntHill"); _resourceManager = FindObjectOfType(typeof(ResourceManager)) as ResourceManager; }
void Awake() { _navHelper = GetComponent <NavAgentHelper> (); _states = GetComponent <AgentStates> (); // Create dicts and sets for newarby pheromones. _nearbyPheromones = new Dictionary <EPheromoneTypes, HashSet <Pheromone> >(); _nearbyPheromones [EPheromoneTypes.Food] = new HashSet <Pheromone> (); _nearbyPheromones [EPheromoneTypes.Attack] = new HashSet <Pheromone> (); _nearbyPheromones [EPheromoneTypes.Repellant] = new HashSet <Pheromone> (); _agentConfiguration = FindObjectOfType(typeof(GlobalAgentConfiguration)) as GlobalAgentConfiguration; }
void Awake() { navHelper = GetComponent <NavAgentHelper> (); }