예제 #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);
        }
예제 #2
0
 public static void Stop()
 {
     _watcher?.Stop();
     _watcher = null;
     Debug.Log("Anti-Death-Loop stopped");
 }