public void ExecuteStepUpdate() { ICardAbilityStep runningStep = currentlyRunningStep; if (runningStep != null) { runningStep.Execute(); } }
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(); }