// Next signal of automatic control public void NextSignalButton() { TrafficLightsSignal signal = (TrafficLightsSignal)trafficLights.IncreaseSignalNum(); currentSignalText.text = signal.ToString(); trafficLights.ChangeSignal((int)signal); }
// Return current traffic light signal in string format public string CurrentLightSignal() { return(lightsSignal.ToString()); }