Fixed AnimationState bug.
Added animation state usage to example.
Better animation state test.