diff --git a/src/EcsQuery/EcsSubjectDI.cs b/src/EcsQuery/EcsSubjectDI.cs index 28f3c01..e8e3c2c 100644 --- a/src/EcsQuery/EcsSubjectDI.cs +++ b/src/EcsQuery/EcsSubjectDI.cs @@ -20,8 +20,8 @@ namespace DCFApixels.DragonECS Type builderType = b.GetType(); MethodInfo incluedMethod = builderType.GetMethod("Include", BindingFlags.Instance | BindingFlags.Public); MethodInfo excludeMethod = builderType.GetMethod("Exclude", BindingFlags.Instance | BindingFlags.Public); - MethodInfo includeImplicitMethod = builderType.GetMethod("IncludeImplicit", BindingFlags.Instance | BindingFlags.Public); - MethodInfo excludeImplicitMethod = builderType.GetMethod("ExcludeImplicit", BindingFlags.Instance | BindingFlags.Public); + MethodInfo includeImplicitMethod = builderType.GetMethod("IncludeImplicit", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); + MethodInfo excludeImplicitMethod = builderType.GetMethod("ExcludeImplicit", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); MethodInfo optionalMethod = builderType.GetMethod("Optional", BindingFlags.Instance | BindingFlags.Public); Type subjectType = s.GetType();