Some cleanups, use explicit type, remove unused imports

This commit is contained in:
Paul Pacheco 2018-08-30 09:04:23 -05:00
parent 310fae52df
commit 6c25b7aa37

View File

@ -6,8 +6,6 @@
using UnityEditor.Compilation;
using System;
using System.Linq;
using UnityEditor.Events;
using System.Reflection;
namespace Mirror.Weaver
{
@ -79,15 +77,17 @@ static CompilationFinishedHook()
// original Weaver.Program.Process function.)
static string[] GetExtraAssemblyPaths(string assemblyPath)
{
var assemblies = CompilationPipeline.GetAssemblies();
Assembly[] assemblies = CompilationPipeline.GetAssemblies();
foreach (var assembly in assemblies)
foreach (Assembly assembly in assemblies)
{
if (assembly.outputPath == assemblyPath)
{
return assembly.compiledAssemblyReferences.Select(Path.GetDirectoryName).ToArray();
}
}
Debug.LogWarning("Unable to find configuration for assembly " + assemblyPath);
return new string[] { };
}