Ejemplo n.º 1
0
 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));
     }
 }