protected virtual void UnloadAll() { _history.SpliceOffPossibleFuture(); if (_currentAction != null) { SetExternalAction(_currentAction.Unset()); _currentAction = null; } if (_currentTask != null) { SetExternalAction(new TaskAction(ActionType.UnsetTask, _currentTask, true)); _currentTask = null; } }
public override void SetAction(Action _action) { if (GetAAFromAction(_action) != null && _currentAA != null) { base.SetAction(_currentAA.Unset()); } base.SetAction(_action); }