"Write me a script for an enemy spawner"
xxxxxxxxxx
using UnityEngine;
public class EnemySpawner : MonoBehaviour
{
public GameObject enemyPrefab;
public int enemyCount;
public float spawnRadius;
public float spawnInterval;
private float spawnTimer;
// Start is called before the first frame update
void Start()
{
spawnTimer = spawnInterval;
}
// Update is called once per frame
void Update()
{