I just found a simple way to flip the character without any problem:
just try this!
transform.localEulerAngles = transform.eulerAngles + Vector3(0,180,-2*transform.eulerAngles.z);
↧