Example #1
0
 public TrafficLight(LightState state)
 {
     _state = state;
 }
Example #2
0
 public void ChangeState(LightState state)
 {
     _state = state;
 }
Example #3
0
 public void SetState(LightState light)
 {
     currentState = light;
 }