Exemple #1
0
 public void SetTrafficLightSetting(TrafficLightSetting setting)
 {
     trafficLightSetting = setting;
     switchTime          = trafficLightSetting.SwitchTime;
     waitTime            = trafficLightSetting.WaitTime;
     isAuto    = trafficLightSetting.IsAuto;
     lightMode = trafficLightSetting.lightMode;
     SetLight();
 }
Exemple #2
0
 public TrafficLightSetting GetTrafficLightSetting()
 {
     trafficLightSetting = new TrafficLightSetting
     {
         Name       = name,
         SwitchTime = switchTime,
         WaitTime   = waitTime,
         IsAuto     = isAuto,
         lightMode  = lightMode
     };
     return(trafficLightSetting);
 }