public static void RemoveColliders(QuickPolygon shape) { shape.ShapeColliderIndex = ColliderType.None; Collider2D[] col = shape.GetComponents <Collider2D>(); if (col != null && col.Any()) { col.ToList().ForEach(c => Helpers.Destroy(c)); } }
public static void RemoveColliders(QuickPolygon shape) { shape.ShapeColliderIndex = ColliderType.None; Collider2D[] col = shape.GetComponents <Collider2D>(); if (col != null && col.Any()) { col.ToList().ForEach(c => Helpers.Destroy(c)); } }