I cobbled this C# code together after a minute of Googling the question:
private var getCount = new Array();
void Start()
{
getCount = GameObject.FindGameObjectsWithTag ("pickup");
count = getCount.length;
}
…but neither MonoDevelop nor Unity itself seem to pick up “var” or “length” and so I’m locked out of play mode. Is there something for what I’m trying to do that, ideally, fits in one script outside the prefab?