public void OnDisable () { // Abort calculation of path if (seeker != null && !seeker.IsDone()) seeker.GetCurrentPath().Error(); //Make sure we receive callbacks when paths complete seeker.pathCallback -= OnPathComplete; }