Getting Rotation of an Object and rotating another object.

Hi everyone, I am making a 2D platformer game and I have a boat which slides down a surface. It rotates when it does this (because the surface is slanted), but when the player is in the boat, he doesn’t rotate. I want to make it so when the player is in the boat, he rotates with the boat. I have tried different things in c# to fix this, but none of them have been working the way I want them to be. Dies anyone have code or information about how to do this?

Easiest solution is maybe, just moving the player inside the boat. So that he is a child of it’s transform, when you watch it in the Hierarchy.

This line should be enough: