Fix deprecation warnings in the AStar package
This commit is contained in:
@@ -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"+
|
||||
|
||||
Reference in New Issue
Block a user