Files
uni/year3/semester1/CT3536: Games Programming/project/Assets/RoadArchitect/Scripts/TrafficLightSequence.cs
2024-03-09 19:25:59 +00:00

26 lines
1.1 KiB
C#
Executable File
Vendored

namespace RoadArchitect
{
public class TrafficLightSequence
{
public bool isLightMasterPath1 = true;
public TrafficLightController.iLightControllerEnum lightController = TrafficLightController.iLightControllerEnum.Regular;
public TrafficLightController.iLightSubStatusEnum lightSubcontroller = TrafficLightController.iLightSubStatusEnum.Green;
public float time = 10f;
public TrafficLightSequence(bool _isPath1, TrafficLightController.iLightControllerEnum _lightController, TrafficLightController.iLightSubStatusEnum _lightSubcontroller, float _time)
{
isLightMasterPath1 = _isPath1;
lightController = _lightController;
lightSubcontroller = _lightSubcontroller;
time = _time;
}
public string ToStringRA()
{
return "Path1: " + isLightMasterPath1 + " iLightController: " + lightController.ToString() + " iLightSubcontroller: " + lightSubcontroller.ToString() + " tTime: " + time.ToString("0F");
}
}
}