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

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

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

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

            writer.WriteUInt32(converter.intValue);
        }