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