Пример #1
0
        private JSScriptFinder GetScriptFinder()
        {
            if (_finder == null)
            {
                var baseDir = UnityHelper.LoadPrefs().sourceDir;
                _finder = new JSScriptFinder(baseDir);

                //TODO: need optimization, make the full collecting process async, and wait it finished
                _finder.Start();
            }

            return(_finder);
        }
Пример #2
0
        public static JSScriptFinder GetInstance()
        {
            if (_finder == null)
            {
                var prefs   = UnityHelper.LoadPrefs();
                var baseDir = prefs.sourceDir;

                _finder = new JSScriptFinder(baseDir, prefs.typescriptExt);
                _finder.Start(); //TODO: need optimization, make the full collecting process async, and wait it finished
            }

            return(_finder);
        }