onBlockedMovement method
Implementation
@override
void onBlockedMovement(
PositionComponent other,
CollisionData collisionData,
) {
if (isJumping &&
lastDirectionVertical.isDownSide &&
collisionData.direction.isDownSide) {
_currentJumps = 0;
isJumping = false;
}
super.onBlockedMovement(other, collisionData);
}