Thank you for your proposition, but finally I decided this would be the platforms that would move, so I no longer need controller on my player object.
However, I know that your script exists and there are chances that I use it in the future.
So, thank you again!