HOW TO ROTATE AN OBJECT IN ONE AXIS BY ROTATING ANOTHER OBJECT : I HAVE A STARING WHEEL THAT I WANT TO ROTATE IN Y AXIS. BY ROTATING THIS WHEEL I WANT TO ROTATE A MIRROR AND THIS MIRROR TO FOLLOW THE ROTATION OF STAIRING WHEEL BUT IN Z AXIS AND NOT IN Y. CAN SOMEONE PLS HELP ME?

I TRIED THIS ONE BUT IT IS ROTATING THE 2 OBJECT IN SAME AXIS
 void Update()
    {

        mirror.transform.localRotation = stairing.transform.localRotation;



    }