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; }
private void Reset() { meshCollider = GetComponent <MeshCollider>(); bezierWarpPlane = GetComponent <BezierWarpPlane>(); }