Skip to content

Commit 504dde4

Browse files
easy event editor 2020 fixes
1 parent 373982d commit 504dde4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/UXF/Scripts/Etc/Editor/EasyEventEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ MethodInfo InvokeFindMethod(string functionName, object targetObject, UnityEvent
928928
findMethod = eventObject.GetType().GetMethod("FindMethod", BindingFlags.NonPublic | BindingFlags.Instance, null,
929929
new System.Type[] {
930930
typeof(string),
931-
#if UNITY_2021_1_OR_NEWER
931+
#if UNITY_2020_1_OR_NEWER
932932
typeof(System.Type),
933933
#else
934934
typeof(object),
@@ -947,7 +947,7 @@ MethodInfo InvokeFindMethod(string functionName, object targetObject, UnityEvent
947947
return null;
948948
}
949949

950-
#if UNITY_2021_1_OR_NEWER
950+
#if UNITY_2020_1_OR_NEWER
951951
return findMethod.Invoke(eventObject, new object[] {functionName, targetObject?.GetType(), listenerMode, argType }) as MethodInfo;
952952
#else
953953
return findMethod.Invoke(eventObject, new object[] {functionName, targetObject, listenerMode, argType }) as MethodInfo;

0 commit comments

Comments
 (0)