Staying on a floating plataform

Hello, I already code a simple object and it moves towards a floating plataform(its a simple rectangle), I already put some animation to that plataform to move from one point to another and it loops, but my question is how to make the character object to stay in that plataform, because the player has to move forward to keep on the plataform, if not it falls.

Im using CharacterController.SimpleMove. to control the character object.

Thanks =)

This question has been answered in several different places. I'll link you to them. Basically you can either move the player up slightly every frame (thats how the 2D platform tutorial does it) or you can parent the elevator to the player and then unparent them when the player gets off.

Forum Post

Another Forum Post

2D platformer

Unity Answers

Thanks for the information PeterG, Im working on my code right now.