Cleanup deprecation warnings in the plugin

This commit is contained in:
Michal Pikulski
2025-09-10 12:56:51 +02:00
parent e0af6b999d
commit 8491b74d5d
8 changed files with 9 additions and 9 deletions

View File

@@ -73,7 +73,7 @@ namespace Pathfinding {
}
public static void FindAllGraphSurfaces () {
var srf = GameObject.FindObjectsOfType(typeof(RelevantGraphSurface)) as RelevantGraphSurface[];
var srf = GameObject.FindObjectsByType<RelevantGraphSurface>(FindObjectsSortMode.None) as RelevantGraphSurface[];
for (int i = 0; i < srf.Length; i++) {
srf[i].OnDisable();