From b26a6e54eb82cb02eb8e32dbfb5d6fdeff141ab2 Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Sun, 28 May 2023 22:29:24 +0800 Subject: [PATCH] refactoring --- src/EcsQuery/EcsSubjectDI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();