Fix deprecation warnings in the AStar package

This commit is contained in:
Michal Pikulski
2025-09-03 09:39:52 +02:00
parent bba04ef885
commit d8f792c8e5
3 changed files with 5 additions and 5 deletions

View File

@@ -189,7 +189,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 : GameObject.FindFirstObjectByType(typeof(AstarPath)) as AstarPath;
if (script != null) {
script.ConfigureReferencesInternal();
@@ -198,7 +198,7 @@ namespace Pathfinding {
}
}
bool mecanim = GameObject.FindObjectOfType(typeof(Animator)) != null;
bool mecanim = GameObject.FindFirstObjectByType(typeof(Animator)) != null;
string query = updateURL+
"?v="+AstarPath.Version+
"&pro=0"+