Check out example codes for "unity mirror character". It will help you in understanding the concepts better.
Code Example 1
if (isRight == true && isLeft == false) { transform.eulerAngles = new Vector3(0, 0 ,0); } if (isRight == false && isLeft === true) { transform.eulerAngles = new Vector3(0, 180, 0); }
Learn ReactJs, React Native from akashmittal.com