コード例 #1
0
    // Next signal of automatic control
    public void NextSignalButton()
    {
        TrafficLightsSignal signal = (TrafficLightsSignal)trafficLights.IncreaseSignalNum();

        currentSignalText.text = signal.ToString();
        trafficLights.ChangeSignal((int)signal);
    }
コード例 #2
0
 // Return current traffic light signal in string format
 public string CurrentLightSignal()
 {
     return(lightsSignal.ToString());
 }