// put list of NPCs into agentList void findAgentList() { agents = GameObject.Find("Agents"); agentScript = agents.GetComponent <AgentInfo>(); agentList = agentScript.getAgentList(); }