Unity Stop Work when i run this script
i thing the problem is
if (enemys+ actualEnemy >= enemysPerRound)
{
float sizeOfList = SpawnPoints.Count;
Debug.Log(sizeOfList);
spawnPointInList = UnityEngine.Random.Range(0, SpawnPoints.Count);
var NewEnemy = Instantiate(enemy, SpawnPoints[spawnPointInList].position, Quaternion.identity);
Enemys.Add(NewEnemy);
enemys += actualEnemy;
}