Seems like this would be more easily parseable if you just set FieldCharacterStateWalking in an else clause instead of setting it and then conditionally re-setting it.

Also, for the sake of code style cohesion, please add { } braces for one-line if statements, since that's done elsewhere.