Пример #1
0
        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);
                }
            }
        }
Пример #2
0
    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);
            }
        }
    }