Character Rotation Problem While using it with mechenim (photon unity networking).

Options
I have created locomotion for the character its work perfectly fine in local. but while I'm integrating it into my photon network game the character is being rotated along the x-axis.