First, I did scour the docs for Arraylists, it only returns Array. So I took a stab in the dark based on Mono, and Arraylist does exist, however… After creating a new arraylist, and then adding elements to it, debug does show me the correct count as to existing elements in the list based on this code:
Debug.Log(invaderList.Count);
Here is the problem, when I want to get to USE the count, this throws a cast error. According to the M$ docs that I know, .Count returns an Integer, but if I try like so:
int amount=invaderList.Count;
I get another one of my famouse errors of
“Cannot cast from source type to destination type”
So, what “type” is count?
I have tried the casting of (int) invaderList.Count;, but this throws more errors.