public static void WritePosition(ref UdpBitStream bitStream, UnityEngine.Vector3 pos) { bitStream.WriteFloat(pos.x); bitStream.WriteFloat(pos.y); bitStream.WriteFloat(pos.z); }