コード例 #1
0
 public BezierWarpPlaneInfo(BezierWarpPlane bezierWarpPlane)
 {
     this.CornerPoints = bezierWarpPlane.CornerPoints.Select(e => new UtilPack4Unity.TypeUtils.Json.Vec2(e)).ToArray();
     this.AnchorPoints = bezierWarpPlane.AnchorPoints.Select(e => new UtilPack4Unity.TypeUtils.Json.Vec2(e)).ToArray();
     this.SegmentX     = bezierWarpPlane.SegmentX;
     this.SegmentY     = bezierWarpPlane.SegmentY;
 }
コード例 #2
0
 private void Reset()
 {
     meshCollider    = GetComponent <MeshCollider>();
     bezierWarpPlane = GetComponent <BezierWarpPlane>();
 }