public void OnDestroy() { if (NavmeshCut.OnDestroyCallback != null) { NavmeshCut.OnDestroyCallback.Invoke(this); } NavmeshCut.RemoveCut(this); }