Beispiel #1
0
 public void SetState(TrafficLightState state)
 {
     _currentState = state;
 }
Beispiel #2
0
 public TrafficLight()
 {
     _currentState = new RedState();
 }