Пример #1
0
 public NextRayFanData(int depthLeft, RayStretcher parent, Vector2 origin, Vector2 straightDirection, List <Vector2> pathYet, LayerMask rayMask)
 {
     this.depthLeft         = depthLeft;
     this.parent            = parent;
     this.origin            = origin;
     this.straightDirection = straightDirection;
     this.pathYet           = pathYet;
     this.rayMask           = rayMask;
 }
Пример #2
0
        public RayFan(int depthLeft, RayStretcher parent, Vector2 origin, Vector2 straightDirection, List <Vector2> pathYet, LayerMask rayMask)
        {
            this.depthLeft         = depthLeft;
            this.parent            = parent;
            this.origin            = origin;
            this.straightDirection = straightDirection;
            this.pathYet           = pathYet;
            this.rayMask           = rayMask;

            maxRays = (int)(parent.rayArc * 2f / parent.raySpacing);
        }