Skip to content

Commit

Permalink
Remove serializers in DisconnectInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
mtschoen-unity committed Aug 13, 2020
1 parent 6abe169 commit 02b4d41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Runtime/Scripts/Modules/SerializedPreferencesModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ public void ConnectInterface(object target, object userData = null)

public void DisconnectInterface(object target, object userData = null)
{
var serializePreferences = target as ISerializePreferences;
if (serializePreferences != null)
{
m_Serializers.Remove(serializePreferences);
}
}
}
}

0 comments on commit 02b4d41

Please sign in to comment.