Esempio n. 1
0
        private static void InitializeWatcher()
        {
            if (Application.isBatchMode)
            {
                Debug.Log("Anti-Death-Loop disabled in batchmode");
                return;
            }

            _configPath = Path.Combine(Application.dataPath, "anti-death-loop.cfg");
            ParseWaitIntervalFromFile();
            _watcher = new DeathLoopWatcher(_waitInterval);
        }
Esempio n. 2
0
 public static void Stop()
 {
     _watcher?.Stop();
     _watcher = null;
     Debug.Log("Anti-Death-Loop stopped");
 }