Exemplo n.º 1
0
    public void ChangeStep(ICardAbilityStep newStep)
    {
        if (currentlyRunningStep != null)
        {
            currentlyRunningStep.Exit();
        }

        previouslyRunningStep = currentlyRunningStep;

        currentlyRunningStep = newStep;
        currentlyRunningStep.Enter();
    }
Exemplo n.º 2
0
 public void SwitchToPreviousStep()
 {
     currentlyRunningStep.Exit();
     currentlyRunningStep = previouslyRunningStep;
     currentlyRunningStep.Enter();
 }