From 7ddd9a0cecfa108fc22c123a9110f10c8a920297 Mon Sep 17 00:00:00 2001 From: hadashiA Date: Wed, 3 Jul 2024 17:34:48 +0900 Subject: [PATCH] Fix compilation error in 2021.3 --- VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs b/VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs index e5637e8b..2a5b0b8e 100644 --- a/VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs +++ b/VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs @@ -117,7 +117,7 @@ static LifetimeScope Find(Type type, Scene scene) static LifetimeScope Find(Type type) { -#if UNITY_2020_4_OR_NEWER || UNITY_2021_4_OR_NEWER || UNITY_2022_3_OR_NEWER || UNITY_2021_3_OR_NEWER +#if UNITY_2022_1_OR_NEWER return (LifetimeScope)FindAnyObjectByType(type); #else return (LifetimeScope)FindObjectOfType(type);