Could you give the player controller shown in the video ?
Viewing post in 2D Pixel Art Character Template Asset Pack comments
its powered by a full finite state machine so it is a lot of scripts not just a single player controller script. and I'm not really great/efficient at coding so my code is probably not optimal. I would not take my advice for coding. I actually set all that up using Bardent's Player Controller Youtube series - so most of it is either inspired by his code or directly taken from there anyways.