void GenerateMarkers() { print("GENERATION"); for (int i = 0; i < activeMarkers.Count; i++) //Release into pool { ReturnMarkerToPool(activeMarkers [i]); } activeMarkers.Clear(); for (int i = 0; i < m; i++) { activeMarkers.Add(AcquireMarkerFromPool(activeMarkersContainer)); } UpdatePositions(); HeatMap hm = GetComponent <HeatMap> (); if (hm != null) { hm.Initialize(activeMarkersContainer); } }