Pathfinding.RichAI.OnDisable C# (CSharp) Method

OnDisable() public method

public OnDisable ( ) : void
return void
		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;
		}