示例#1
0
 public PlainShapeList(DynamicPlainShape plainShape, Allocator allocator)
 {
     this.segments = new NativeArray <Segment>(1, allocator)
     {
         [0] = new Segment(0, 1)
     };
     this.points  = plainShape.points.ToArray(allocator);
     this.layouts = plainShape.layouts.ToArray(allocator);
 }
示例#2
0
 public void Add(DynamicPlainShape shape)
 {
     this.segments.Add(new Segment(this.layouts.Count, shape.layouts.Count));
     this.points.Add(shape.points);
     this.layouts.Add(shape.layouts);
 }