Switching Players script?

I’m making a game where you control a boat, and when you come to land(triggered by cubes), you switch to a land-based player.

So I would like to make a script where when you come in contact with an object, it switches your controller to a different object.

Any advice?

I think, a good approach can be use a ManagerSingleton Script where you store the active (or maybe actives) GameObject.