ComponentEventSubscriber
A class in Root.Township, the global namespace.
Subscribes a component's handler to an event and unsubscribes itself, with an error log, if the component has been destroyed when the event fires. Dispose to unsubscribe.
- Listed in Global namespace: C to D
- Inherits or implements
IDisposable
Constructors
| Member | What it is |
|---|---|
ComponentEventSubscriber(Component component, Func<Action, Action> subscriber, Action<Action> unsubscriber) | Creates a ComponentEventSubscriber from component, subscriber and unsubscriber. |
Fields
5 private and internal fields
Methods
| Member | What it is |
|---|---|
void Dispose() | Unsubscribes from the event. |
2 private and internal methods
Used in
Members of other types that take, return or hold a ComponentEventSubscriber: