Example #1
0
    public void ChangeStep(ICardAbilityStep newStep)
    {
        if (currentlyRunningStep != null)
        {
            currentlyRunningStep.Exit();
        }

        previouslyRunningStep = currentlyRunningStep;

        currentlyRunningStep = newStep;
        currentlyRunningStep.Enter();
    }
Example #2
0
 public void SwitchToPreviousStep()
 {
     currentlyRunningStep.Exit();
     currentlyRunningStep = previouslyRunningStep;
     currentlyRunningStep.Enter();
 }