This traffic light system iv been working on is simple but does what its meant for.
There are 3 Light options
1. Main ( is the main operation of the lights )
2. is Malfunction ( puts the lights in a malfunction state)
3. Road works / Others. ( These are a set of lights that can be moved anywhere )
i have added 4 prefab lights a set of 4 way 2 lane, 2 way 1 lane, 4 way 1 lane and road work lights, all these lights work in different ways with the c# script.
Have also added the option to choose malfunction to work randomly in 3 modes ( often, normal, not often ) often means it will happen quite a lot,
Normal means it will happen but not ass often as first option,
and the not often means it will happen but it will be rare.
Please feel free to give me your feed back on this.