public void Audit(ProjectReport projectReport) { var progressBar = new ProgressBarDisplay("Analyzing Scripts", "Analyzing project scripts", m_PlayerAssemblies.Length); var assemblies = GetPlayerAssemblies(); if (assemblies.Count > 0) { // Analyse all Player assemblies, including Package assemblies. foreach (var assemblyPath in assemblies) { progressBar.AdvanceProgressBar(); if (!File.Exists(assemblyPath)) { Debug.LogError(assemblyPath + " not found."); return; } AnalyzeAssembly(assemblyPath, projectReport); } } progressBar.ClearProgressBar(); }
public void Audit(ProjectReport projectReport) { var progressBar = new ProgressBarDisplay("Analyzing Scripts", "Analyzing project settings", m_ProblemDescriptors.Count); // do we actually need to look in all assemblies? var assemblies = AppDomain.CurrentDomain.GetAssemblies(); foreach (var p in m_ProblemDescriptors) { progressBar.AdvanceProgressBar(); SearchAndEval(p, assemblies, projectReport); } progressBar.ClearProgressBar(); }