Change camera between characters

I'm following Yanuziello's course on the platformer 2d. At the end of the first chapter, as a challenge, he gave the challenge of creating different characters and making them all controllable. So I did it, and assigned a command to switch between characters, which opened the world to me to a cool mechanic for a platformer. However, I also wanted to add a camera to follow them. This is my solution, but I was wondering if there was another way, to move the camera between characters, perhaps a more efficient or elegant one.

https://reddit.com/link/1hpv430/video/dd0ovf1sd1ae1/player