/// <summary> /// /// </summary> /// <param name="task"></param> public void StopTask(AITask task) { if (_currentTask == task && _currentTask != null) { StopTask(); } }
/// <summary> /// /// </summary> /// <param name="task"></param> /// <returns></returns> private IEnumerator PerformTask(AITask task) { yield return(task.OnHandleController()); StopTask(); }