public string ReadFile(string filepath, out string debugpath) { debugpath = GetScriptDebugPath(filepath); IScriptLoader loader = null; for (int i = 0; i < loaders.Count; i++) { if (!loaders[i].FileExists(filepath)) { continue; } if (loader == null || loader.version.time < loaders[i].version.time) { loader = loaders[i]; } } return(loader.ReadFile(filepath)); }