Simple state machine in C# for Unity3D