//------------------------------------------------------------ //---------------- Util Methods For Building ----------------- //------------------------------------------------------------ public static void BuildOpportunityRings(JSONArray opportunityRecords, Transform parentTransform, Transform Ring, Transform Block, Transform blockBox) { List <Opportunity> oppList = new List <Opportunity>(); foreach (JSONValue row in opportunityRecords) { JSONObject rec = JSONObject.Parse(row.ToString()); Opportunity opp = Opportunity.CreateInstance("Opportunity") as Opportunity; opp.init(rec); oppList.Add(opp); } int i = 0; foreach (Opportunity opp in oppList) { createRing(opp, i, parentTransform, Ring, Block, blockBox); i++; } }