Exemple #1
0
        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();
            }
        }
Exemple #2
0
 public override void OnApplicationQuit()
 {
     ConfigWatcher.Unload();
 }