Exemple #1
0
 public static void WritePlane(this NetworkWriter writer, Plane value)
 {
     writer.WriteVector3(value.normal);
     writer.WriteSingle(value.distance);
 }
Exemple #2
0
 public static void WriteMatrix4X4(this NetworkWriter writer, Matrix4x4 value)
 {
     writer.WriteSingle(value.m00);
     writer.WriteSingle(value.m01);
     writer.WriteSingle(value.m02);
     writer.WriteSingle(value.m03);
     writer.WriteSingle(value.m10);
     writer.WriteSingle(value.m11);
     writer.WriteSingle(value.m12);
     writer.WriteSingle(value.m13);
     writer.WriteSingle(value.m20);
     writer.WriteSingle(value.m21);
     writer.WriteSingle(value.m22);
     writer.WriteSingle(value.m23);
     writer.WriteSingle(value.m30);
     writer.WriteSingle(value.m31);
     writer.WriteSingle(value.m32);
     writer.WriteSingle(value.m33);
 }
Exemple #3
0
 public static void WriteVector2(this NetworkWriter writer, Vector2 value)
 {
     writer.WriteSingle(value.x);
     writer.WriteSingle(value.y);
 }