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); }
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); }