So in the levelcontroller script when we call the
public void AttackerSpawned()
{
numberOfAttackers ++;
}
i just find out that for me it starts with 5 instead of 0 and when the attackers starts to spawn they go up for
10.So i never reach 0 .
My only solution to this was that i write in the Start
numberOfAttackers = numberOfAttackers - 5;
Ugly bugfix :D.