Particular Problems with Public Variables in Unity

The Unity documentation [http://docs.unity3d.com/Documentation/Manual/Scripting.html] it indicates that all public variables are made available in the inspector for direct editing. While this is handy, it is also dangerous. This article will cover a few things regarding public variables, and how to avoid them in…

Finite State Machines

To expand on my post about enumerations [http://www.plantingcode.me/2012/11/02/enumerate-enumerate/earlier] I'm going to look at Finite State Machines in a relatively general sense. Let's start with breaking down what exactly a Finite State Machine is. We can look at the descriptive words to see…

Enumerate! Enumerate!

Fans of Doctor Who will probably shun me for that titling. What are enumerators, or, more specifically, enums? To put it succinctly, enums are words that are actually numbers. What does this mean? It means that when you write your code you can check for words, but when it gets…