I have a simple enemy wave based survival game
the spawn system have an array of enemy AIs and Spawn Points, I want the spawned prefabs to be removed from the enemies array to avoid getting spawned again, is there a way to do so, here's my code:
public Transform[] spawnPoints;
public GameObject[] enemies;
Pos= spawnPoints[Random.Range (0,spawnPoints.length)]);
AI = Instantiate (enemies[Random.Range (0, enemies.length)]) , Pos);