public static void WriteLayerMask(this BasePacket stream, LayerMask mask) { stream.WriteInt(mask.value, 32); }