示例#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);
        }