/// <summary> /// Set up the file system watcher, add to the delegate 'changed' an anonymous function which /// loads the updates and updates AlignmentUpdateListeners. /// </summary> /// <param name="eventHandlers"></param> public void Init(IEventHandlers eventHandlers) { eventHandlers.SubscribeOnStart(OnStart); //Allow for the delegates to be deleted. eventHandlers.SubscribeOnApplicationQuit(OnApplicationQuit); }
public void Init(IEventHandlers eventHandlers) { #if !NET_2_0_SUBSET eventHandlers.SubscribeOnAwake(SceneStartAnalytics); eventHandlers.SubscribeOnApplicationQuit(SceneStopAnalytics); eventHandlers.SubscribeOnStart(InitSlamLocalizerAnalytics); #endif }
void IEventReceiver.Init(IEventHandlers eventHandlers) { eventHandlers.SubscribeOnUpdate(Update); eventHandlers.SubscribeOnApplicationQuit(OnApplicationQuit); }
public void Init(IEventHandlers eventHandlers) { eventHandlers.SubscribeOnStart(CheckSensors); eventHandlers.SubscribeOnApplicationQuit(() => { _controller.Destroy(); }); }