Function AstarPath.OnDestroy
OnDestroy
()
Clears up variables and other stuff, destroys graphs.
Private
void OnDestroy ()
Clears up variables and other stuff, destroys graphs.
Note that when destroying an AstarPath object, all static variables such as callbacks will be cleared.