public void Clear() { for (var i = Pixels.Count - 1; i >= 0; i--) { DestroyablePool <DestroyableSplitPixel> .Despawn(Pixels[i]); } Data = null; Rect.Clear(); Pixels.Clear(); }
public static void ClearAll() { for (var i = SplitGroups.Count - 1; i >= 0; i--) { var splitGroup = SplitGroups[i]; splitGroup.Clear(); DestroyablePool <DestroyableSplitGroup> .Despawn(splitGroup); } SplitGroups.Clear(); }
private static void Clear(List <Island> islands) { for (var i = islands.Count - 1; i >= 0; i--) { var island = islands[i]; island.Clear(); DestroyablePool <Island> .Despawn(island); } islands.Clear(); }