Skip to content

Commit

Permalink
Merge pull request #693 from hadashiA/ku/fix-if-directive
Browse files Browse the repository at this point in the history
Fix compilation error in 2021.3
  • Loading branch information
hadashiA authored Jul 3, 2024
2 parents c0db2d1 + 7ddd9a0 commit 9fdf46a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9fdf46a

Please sign in to comment.