15 [SerializeField]
private Listener listener =
default;
20 private void OnEnable() => listener.
Register(OnChange);
22 private void OnDisable() => Deregister();
25 public void Deregister() => listener.
Deregister();
28 protected abstract void OnChange(Emitter emitter);
WithEmitter AssetToMonitor
Used to classes that have a listener can get back the Custom Asset that triggered it ...
Common code for all event listener MonoBehaviours. It registers and deregisters the listener with the...
Common code for all event listeners. It registers and deregisters the listener with the channel ...
Base class for all custom assets - implementing initialisation
void Deregister()
Call to stop receiving change calls
void Register(Emitter.Action actionOnTriggered)
Register an action so that if the custom asset member changes anyone can be told
Common code for all event listener MonoBehaviours. It registers and deregisters the listener with the...