public static Vector4 ReadVector4(this NetworkReader reader) => new Vector4(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
public static Matrix4x4 ReadMatrix4x4(this NetworkReader reader) { return(new Matrix4x4 { m00 = reader.ReadSingle(), m01 = reader.ReadSingle(), m02 = reader.ReadSingle(), m03 = reader.ReadSingle(), m10 = reader.ReadSingle(), m11 = reader.ReadSingle(), m12 = reader.ReadSingle(), m13 = reader.ReadSingle(), m20 = reader.ReadSingle(), m21 = reader.ReadSingle(), m22 = reader.ReadSingle(), m23 = reader.ReadSingle(), m30 = reader.ReadSingle(), m31 = reader.ReadSingle(), m32 = reader.ReadSingle(), m33 = reader.ReadSingle() }); }
public static Plane ReadPlane(this NetworkReader reader) => new Plane(reader.ReadVector3(), reader.ReadSingle());
public static Rect ReadRect(this NetworkReader reader) => new Rect(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
public static Color ReadColor(this NetworkReader reader) => new Color(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
public static Quaternion ReadQuaternion(this NetworkReader reader) => new Quaternion(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());