diff --git a/CharacterController2D.cs b/CharacterController2D.cs index 925bfe0..f25b8de 100644 --- a/CharacterController2D.cs +++ b/CharacterController2D.cs @@ -138,9 +138,6 @@ private void Flip() // Switch the way the player is labelled as facing. m_FacingRight = !m_FacingRight; - // Multiply the player's x local scale by -1. - Vector3 theScale = transform.localScale; - theScale.x *= -1; - transform.localScale = theScale; + transform.Rotate(0f, 180f, 0f); } }