mchrbn / unity-traffic-simulation

A Unity asset that lets you easily simulate very simple traffic into your scene.
263 stars 57 forks source link

Unable to build #3

Closed elhodel closed 5 years ago

elhodel commented 5 years ago

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
menez1111 commented 5 years ago

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

mchrbn commented 5 years ago

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