Fix deprecation warnings in the AStar package
This commit is contained in:
@@ -948,7 +948,7 @@ namespace Pathfinding {
|
||||
|
||||
/// <summary>Opens the A* Inspector and shows the section for editing tags</summary>
|
||||
public static void EditTags () {
|
||||
AstarPath astar = GameObject.FindObjectOfType<AstarPath>();
|
||||
AstarPath astar = GameObject.FindFirstObjectByType<AstarPath>();
|
||||
|
||||
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>();
|
||||
AstarPath.active = FindFirstObjectByType<AstarPath>();
|
||||
if (AstarPath.active == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user