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

        previouslyRunningStep = currentlyRunningStep;

        currentlyRunningStep = newStep;
        currentlyRunningStep.Enter();
    }
コード例 #2
0
 public void SwitchToPreviousStep()
 {
     currentlyRunningStep.Exit();
     currentlyRunningStep = previouslyRunningStep;
     currentlyRunningStep.Enter();
 }