protected override void UnloadAll() { _history.SpliceOffPossibleFuture(); if (_currentAction != null) { SetAction(_currentAction.Unset()); } if (_currentBehavior != null) { SetAction(_currentBehavior.EndBehavior()); } if (_currentTask != null) { SetAction(new TaskAction(ActionType.UnsetTask, _currentTask, true)); } }