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);