Unity Stop Work when i run this script

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;
            }

Well, I assume SpawnPoints is a list and List.Count is an int not a float like you have sizeOfList declared.

Thanks , its works