public static Vector3Pb ToProtobuf(this Vector3 v, ICSConverter converter)
 {
     converter?.ConvertBack(ref v);
     return(new Vector3Pb {
         X = v.x, Y = v.y, Z = v.z
     });
 }
        public static Vector4Pb ToProtobuf(this Quaternion q, ICSConverter converter)
        {
            if (converter != null)
            {
                var v = Vector3.zero;
                converter.ConvertBack(ref v, ref q);
            }

            return(new Vector4Pb {
                X = q.x, Y = q.y, Z = q.z, W = q.w
            });
        }