Exemplo n.º 1
0
    public void ChangeState(ClockState newState)
    {
        CurrentState.Exit();

        CurrentState = newState;
        newState.Enter();
    }
Exemplo n.º 2
0
 public void Initialize(ClockState startingState)
 {
     CurrentState = startingState;
     startingState.Enter();
 }