public static void WriteVector4Nullable(this NetworkWriter writer, Vector4?value) { writer.WriteBool(value.HasValue); if (value.HasValue) { writer.WriteVector4(value.Value); } }