public void ChangeStep(ICardAbilityStep newStep) { if (currentlyRunningStep != null) { currentlyRunningStep.Exit(); } previouslyRunningStep = currentlyRunningStep; currentlyRunningStep = newStep; currentlyRunningStep.Enter(); }
public void SwitchToPreviousStep() { currentlyRunningStep.Exit(); currentlyRunningStep = previouslyRunningStep; currentlyRunningStep.Enter(); }