public void AbortPlan() { Debug.Log("Replanning"); if (CurrentAction != null) { CurrentAction.OnFailed(); CurrentAction.Running = false; } ActionQueue = null; StoredActionQueue.Clear(); CurrentAction = null; }