示例#1
0
 private static void CreateDirWatcher()
 {
     if (dirWatcher == null)
     {
         dirWatcher = new DirectoryWatcher(new FSWParams(GetWorldsRoot(false)));
         dirWatcher.StartFSW();
     }
 }
示例#2
0
        public override void OnEnable()
        {
            base.OnEnable();

            if (dirWatcher == null)
            {
                dirWatcher = new DirectoryWatcher(new FSWParams(Application.dataPath + "/Levels"));
                dirWatcher.StartFSW();
            }
        }