using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SpawnAgents : MonoBehaviour
{
    public GameObject agentPrefab;
    public GameObject[] goals;
    public int numberOfAgents = 10;

    void Start()
    {
        for (int i = 0; i < numberOfAgents; i++)
        {
            // spawn an agent
            var agent = Instantiate(agentPrefab);
            agent.GetComponent<GoToMultiDestinations>().goals = goals;
        }
    }
}
