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