Alberto Luviano
"With a trigger system. Basically, there are invisble area2D colliders at the start and end of the stairs, and when the player presses the up or down button, it positions the player in a sweet spot for the animation to match the stairs movement."