State machine doesn't work in the game

Hey, guys! Maybe some can help me to make it work? I’m messing around with this two days already and it’s just won’t work. So here’s a very simple setup: Two states - 1. On the ground - no animation and 2. In air - Flying idle animation. If ship is touching the ground variable IsGrounded is true and if not - false. Ship can go to the state “In Air” if IsGrounded is true. And states work as it should. Also if I check and uncheck boolean IsGrounded in preview animation work. But in the game it doesn’t!!! So annoying problem and I feel it’s something very simple what I don’t see.