mchrbn/unity-traffic-simulation

Unable to build

Closed this issue · 2 comments

when i try to build the example i get the following error messages and the build fails:

Assets\TrafficSimulation\Scripts\TrafficSystem.cs(19,10): error CS0246: The type or namespace name 'MenuItemAttribute' could not be found (are you missing a using directive or an assembly reference?)

Assets\TrafficSimulation\Scripts\TrafficSystem.cs(19,10): error CS0246: The type or namespace name 'MenuItem' could not be found (are you missing a using directive or an assembly reference?)

Error building Player because scripts had compiler errors

I canbuild my project.
[MenuItem("Component/Traffic Simulation/Create Traffic Objects")]
static void CreateTraffic(){
GameObject mainGo = new GameObject("Traffic System");``

Yes there was some errors, I just pushed a version that should now work when you build.