void ExplodeFromPoint(Vector2D pos) { List <Slice2D> results = Slicing.ExplodeByPointAll(pos, sliceLayer); foreach (Slice2D id in results) { eventHandler.Perform(id); } if (addForce == true) { foreach (Slice2D id in results) { AddForce.ExplodeByPoint(id, addForceAmount, pos); } } }
private void ExplodeByPoint(Vector2D pos) { List <Slice2D> results = Slicer2D.ExplodeByPointAll(pos, sliceLayer); foreach (Slice2D id in results) { if (sliceResultEvent != null) { sliceResultEvent(id); } } if (addForce == true) { foreach (Slice2D id in results) { AddForce.ExplodeByPoint(id, addForceAmount, pos); } } }