flipping 2d character transform.eulerAngles unity code example
Example: unity mirror character
if (isRight == true && isLeft == false) { transform.eulerAngles = new Vector3(0, 0 ,0); } if (isRight == false && isLeft === true) { transform.eulerAngles = new Vector3(0, 180, 0); }