Unity Gems: Advanced Tutorial on Finite State Machines
http://forum.unity3d.com/threads/unity-gems-advanced-tutorial-on-finite-state-machines.156878/
public
enum
EnemyStates
{
sleeping = 0,
following = 1,
attacking = 2,
beingHit = 3,
dying = 4
}
public
EnemyStates currentState = EnemyStates.sleeping;
http://unityindepth.tistory.com/27