using UnityEngine;
using System.Collections;

public class EnemySpawner : MonoBehaviour {

	public GameObject[] enemies;

	public Transform[] spawnPoints;

	public void spawnEnemy(int enemyType,int spawnPoint)
	{
		Instantiate(enemies[enemyType], new Vector3(spawnPoints[spawnPoint].transform.position.x, spawnPoints[spawnPoint].transform.position.y, spawnPoints[spawnPoint].transform.position.z), Quaternion.identity);

	}
}
