1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00

Removed unnecessary editor precompile tags

This commit is contained in:
Thor Brigsted 2019-04-11 23:05:30 +02:00
parent 8ae30f6622
commit 26f37de702

View File

@ -75,13 +75,9 @@ namespace XNodeEditor {
List<System.Type> types = new List<System.Type>();
System.Reflection.Assembly[] assemblies = System.AppDomain.CurrentDomain.GetAssemblies();
foreach (Assembly assembly in assemblies) {
#if UNITY_EDITOR
try {
#endif
types.AddRange(assembly.GetTypes().Where(t => !t.IsAbstract && baseType.IsAssignableFrom(t)).ToArray());
#if UNITY_EDITOR
} catch(ReflectionTypeLoadException) {}
#endif
}
return types.ToArray();
}