unity building assets + menuitems

While lookng at the api for Unity I found this nifty api that allows you to create your custom MenuItem in the Unity Interface. You will need to decorate your script method with the menuitem as such defined in the api. Here is an example of its implementation in .cs: Here is the code for…

Enums and struct on c#

Interesting that c# has structs, the first time i encountered it was in c++ In this example I will be messing about with the enum, defining directions with Int as values. I am still getting around the enums. I have seen its use in different languages but not really used it. I’ve setup the following…