public override void OnUpdate() { var updated = ConfigWatcher.UpdateIfDirty() || _forceUpdate; var shouldChangeMode = ShouldChangeMode(); _forceUpdate = false; if (updated || shouldChangeMode) { TracerToUser.DestroyAllTracers(); } if (shouldChangeMode) { ChangeMode(); } if ((updated || shouldChangeMode) && _tracerMode != TracerMode.Off) { CreateTracers(); } }
public override void OnApplicationQuit() { ConfigWatcher.Unload(); }