How can l scan my grid after action is complted

So l need to scan the grid (In the picture) after action is completed with this code:void OnTriggerStay2D(Collider2D Info)
{
if (Info.gameObject.tag == “Player”)
{
if (Input.GetButtonDown(“Fix”))
{
Destroy(gameObject);
//here l need to start scan
}
}
}

Nevermind found it if someone is looking how to do it with this code
AstarPath.active.Scan();

1 Like