Subscribe Method
- Namespace
- SatorImaging.UnityFundamentals
Subscribe(IObserver<Unit>)
public IDisposable Subscribe(IObserver<ObservableUnityEvent.Unit> observer)
Notifies the provider that an observer is to receive notifications.
Parameters
observer
IObserver<ObservableUnityEvent.Unit>The object that is to receive notifications.
Returns
- IDisposable
A reference to an interface that allows observers to stop receiving notifications before the provider has finished sending them.
Subscribe(UnityAction)
public IDisposable Subscribe(UnityAction act)
Parameters
act
UnityAction