public static float ReadSingle(this NetworkReader reader) { UIntFloat converter = new UIntFloat(); converter.intValue = reader.ReadUInt32(); return(converter.floatValue); }
public float ReadSingle() { UIntFloat converter = new UIntFloat(); converter.intValue = ReadUInt32(); return(converter.floatValue); }
public void WriteSingle(float value) { UIntFloat converter = new UIntFloat { floatValue = value }; WriteUInt32(converter.intValue); }
public static void WriteSingle(this NetworkWriter writer, float value) { UIntFloat converter = new UIntFloat { floatValue = value }; writer.WriteUInt32(converter.intValue); }