Player stuck in jump animation after landing next to a wall

Hi everyone,

I’m having an issue with my game where the player gets stuck in the jump animation when he land after jump near a wall. I’m not sure what could be causing this. I’ve tried searching online for solutions but haven’t found anything helpful. Maybe the problem is that I’m using the walls as ground too, and that’s causing the issue. But I’m not sure how I could make it so that when the player jumps onto the wall, they can still jump again. I’m a beginner in Unity, so I’m still learning how to handle these kinds of problems.

I hope someone here can help me figure this out.

Here is the video:

Okay, I fixed it! I had to rewrite almost the entire code, but it works now. I implemented raycasting to solve the issue. Thank you for your help! <3