game-programming-patterns-demo
game-programming-patterns-demo copied to clipboard
[Fix] Fixed bug in JumpState's Execute function
Fixed JumpState Bug
The state should transition to WalkState when the velocity value is greater than 0.1f, otherwise it should transition to IdleState.
Before modification
Simply jump in place
- Expected : JumpState -> IdleState
- Actual : JumpState -> WalkState -> IdleState
When moving after landing
- Expected : JumpState -> WalkState
- Actual : JumpState -> IdleState -> WalkState