Skip to content

Commit db390f5

Browse files
Update com.unity.netcode.gameobjects/Runtime/Core/FindObjects.cs
Co-authored-by: Emma <emma.mcmillan@unity3d.com>
1 parent fec5e65 commit db390f5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

com.unity.netcode.gameobjects/Runtime/Core/FindObjects.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ public static T[] FindObjectsByType<T>() where T : Object
1010
{
1111
#if NGO_FINDOBJECTS_NOSORTING
1212
var results = Object.FindObjectsByType<T>();
13-
#else
14-
#if UNITY_2023_1_OR_NEWER
13+
#elif UNITY_2023_1_OR_NEWER
1514
var results = Object.FindObjectsByType<T>(FindObjectsSortMode.None);
1615
#else
1716
var results = Object.FindObjectsOfType<T>();
18-
#endif
1917
#endif
2018
return results;
2119
}

0 commit comments

Comments
 (0)