using UnityEngine;
using System.Collections;

public class AdeptSpawner : MonoBehaviour {

	Transform[] spawnPoints;

	public Transform spawnPoint;

	void Awake(){
		spawnPoints = GetComponentsInChildren<Transform> ();
	}

	int CONT = 0;
	public void SpawnAdept (Adept adept){
		//var tr = RandomUtilities.UniformFromList<Transform> (spawnPoints);
		var tr = spawnPoints[CONT];
		CONT++;
		if (CONT == spawnPoints.Length)
			CONT = 0;
		
		//adept.transform.position = tr.position;

		adept.transform.position = spawnPoint.position;

		adept.GoToEllipse ();
	}

}