Esempio n. 1
0
 public void Clear()
 {
     _current = 1;
     Free     = true;
     Exit     = null;
     Open.Clear();
     Closed.Clear();
 }
Esempio n. 2
0
        public void Clear(Shadow2DLight shadow2DLight)
        {
            Segments.Clear();
            EndPoints.Clear();
            Open.Clear();
            Output.Clear();

            Center = shadow2DLight.transform.position;
            Size   = shadow2DLight.size;
            Color  = shadow2DLight.color;

            MergeCollinearSegments = shadow2DLight.mergeCollinearShadowSegments;

            float top   = Size / 2f;
            float btm   = -Size / 2f;
            float left  = -Size / 2f;
            float right = Size / 2f;

            TopLeft     = shadow2DLight.transform.TransformPoint(new Vector3(left, top, 0f));
            BottomLeft  = shadow2DLight.transform.TransformPoint(new Vector3(left, btm, 0f));
            BottomRight = shadow2DLight.transform.TransformPoint(new Vector3(right, btm, 0f));
            _drawGizmos = shadow2DLight._drawGizmos;
            _clipping   = shadow2DLight.clipping;
        }