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