Beispiel #1
0
        public static float ReadSingle(this NetworkReader reader)
        {
            UIntFloat converter = new UIntFloat();

            converter.intValue = reader.ReadUInt32();
            return(converter.floatValue);
        }
Beispiel #2
0
        public float ReadSingle()
        {
            UIntFloat converter = new UIntFloat();

            converter.intValue = ReadUInt32();
            return(converter.floatValue);
        }
Beispiel #3
0
        public void WriteSingle(float value)
        {
            UIntFloat converter = new UIntFloat
            {
                floatValue = value
            };

            WriteUInt32(converter.intValue);
        }
Beispiel #4
0
        public static void WriteSingle(this NetworkWriter writer, float value)
        {
            UIntFloat converter = new UIntFloat
            {
                floatValue = value
            };

            writer.WriteUInt32(converter.intValue);
        }