From 6c25b7aa3709e3ac7e2c3f46cec1374a62679e75 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Thu, 30 Aug 2018 09:04:23 -0500 Subject: [PATCH] Some cleanups, use explicit type, remove unused imports --- Mirror/Weaver/CompilationFinishedHook.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Mirror/Weaver/CompilationFinishedHook.cs b/Mirror/Weaver/CompilationFinishedHook.cs index 9e4ceb12e..9e1177cf5 100644 --- a/Mirror/Weaver/CompilationFinishedHook.cs +++ b/Mirror/Weaver/CompilationFinishedHook.cs @@ -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[] { }; }