// This reads the param1, if it exists, to grab a count of how many to spawn in. public int GetRange(DynamicProperties dynamicProperties3, String strindex) { int minCount = 1; int maxCount = 1; string strRange = ""; dynamicProperties3.Params1.TryGetValue(strindex, out strRange); // If there's no value, just do a single spawn. if (string.IsNullOrEmpty(strRange)) { return(1); } StringParsers.ParseMinMaxCount(strRange, out minCount, out maxCount); float Count = UnityEngine.Random.Range((float)minCount, (float)maxCount); DisplayLog(" Count is: " + Count); return((int)Count); }