I'm pretty new to C# so it might be something stupid but here is the code
Instantiate(enemy, spawnPoints[Random.Range(1, spawnPoints.Length)].position, Quaternion.identity);
↧