Player 2D getting stuck while moving

When I move the player sometimes it just stops like there’s a wall in front of him.

I also attached the movement code:

![alt text][2]

Fixed the issue, a sphere collider 2D works better than a box collider 2D.

ia benar 2D lebih baik dari pada lain hp untuk Box Collider 2d