diff --git a/Assets/AstarPathfindingProject/Editor/AstarPathEditor.cs b/Assets/AstarPathfindingProject/Editor/AstarPathEditor.cs index 1af5720..7c41ea9 100644 --- a/Assets/AstarPathfindingProject/Editor/AstarPathEditor.cs +++ b/Assets/AstarPathfindingProject/Editor/AstarPathEditor.cs @@ -948,7 +948,7 @@ namespace Pathfinding { /// Opens the A* Inspector and shows the section for editing tags public static void EditTags () { - AstarPath astar = GameObject.FindObjectOfType(); + AstarPath astar = Object.FindFirstObjectByType(); if (astar != null) { editTags = true; @@ -1365,7 +1365,7 @@ namespace Pathfinding { [MenuItem("Edit/Pathfinding/Scan All Graphs %&s")] public static void MenuScan () { if (AstarPath.active == null) { - AstarPath.active = FindObjectOfType(); + AstarPath.active = Object.FindFirstObjectByType(); if (AstarPath.active == null) { return; } diff --git a/Assets/AstarPathfindingProject/Editor/AstarUpdateChecker.cs b/Assets/AstarPathfindingProject/Editor/AstarUpdateChecker.cs index f79c47b..f0ec771 100644 --- a/Assets/AstarPathfindingProject/Editor/AstarUpdateChecker.cs +++ b/Assets/AstarPathfindingProject/Editor/AstarUpdateChecker.cs @@ -107,9 +107,11 @@ namespace Pathfinding { }; static AstarUpdateChecker() { + // Don't check for updates (already deprecated). Commented out to avoid warnings + // Add a callback so that we can parse the message when it has been downloaded - EditorApplication.update += UpdateCheckLoop; - EditorBase.getDocumentationURL = () => GetURL("documentation"); + //EditorApplication.update += UpdateCheckLoop; + //EditorBase.getDocumentationURL = () => GetURL("documentation"); } @@ -189,7 +191,7 @@ namespace Pathfinding { } static void DownloadVersionInfo () { - var script = AstarPath.active != null ? AstarPath.active : GameObject.FindObjectOfType(typeof(AstarPath)) as AstarPath; + var script = AstarPath.active != null ? AstarPath.active : Object.FindFirstObjectByType(); if (script != null) { script.ConfigureReferencesInternal(); @@ -198,7 +200,7 @@ namespace Pathfinding { } } - bool mecanim = GameObject.FindObjectOfType(typeof(Animator)) != null; + bool mecanim = Object.FindFirstObjectByType() != null; string query = updateURL+ "?v="+AstarPath.Version+ "&pro=0"+