Is there a quick way to check if an event actually has subscribed when unsubscribing, e.g not use a bool?
private void OnDisable()
{
generator.SomeEvent-= SomeFunction;
}
Is there a quick way to check if an event actually has subscribed when unsubscribing, e.g not use a bool?
private void OnDisable()
{
generator.SomeEvent-= SomeFunction;
}
From inside the class the enent is defined in, you have access to the delegate invocation list.