I\'m making a little arcade shooter for 2 players, and need to have the screen focused on 2 players, I got the camera moving in the center of the players in the X axis, but
just to add on @nokola's answer, (I cannot comment yet..) it seemed like his camera can only go above the objects, so instead of doing:
_camera.transform.position = bounds.center + Vector3.up * resultDistance;
you may do:
_camera.transform.position = bounds.center + -_camera.transform.forward * resultDistance;
now it should work for any rotation camera has. (for me it did atleast)