public bool CheckTrafficLight() { if (_trafficLight.GetCurrentState().GetType() == typeof(TrafficLightRedState)) { return(false); } return(true); }