Hello, I am making a 2D Platformer and am working on a death state when colliding with an EdgeCollider. I use SetVelocity 2D and set X to 0 however the GameObject can still move on the Edge before the FSM is finished and the game restarts. Once it has restarted it works as intended with the GameObject unable to move. I'm not sure how to remedy this but any help would be greatly appreciated.
I added two screenshots of where I use SetVelocity 2D, hopefully that might show the error.