private static void CreateDirWatcher() { if (dirWatcher == null) { dirWatcher = new DirectoryWatcher(new FSWParams(GetWorldsRoot(false))); dirWatcher.StartFSW(); } }
public override void OnEnable() { base.OnEnable(); if (dirWatcher == null) { dirWatcher = new DirectoryWatcher(new FSWParams(Application.dataPath + "/Levels")); dirWatcher.StartFSW(); } }