Hi
Again I'm not sure why this is happening but there is a little fix :
using your script, unity crashes every time it wants to return gos.ToArray() !
instead I changed the return type to List in the method defenition of AvailableSpawnPoints, and in Spawn method :
List gos=AvailableSpawnPoints();
and in the next for loop , instead of Legnth use Count, this way it works fine, same principle but better logic I think, after all when you are using List<> why don't return it and use it everywhere without need to converting it?







Correct. The HTML being used on this site currently use those symbols as tags.