PlayerControl.FlipPlayer C# (CSharp) Method

FlipPlayer() public method

public FlipPlayer ( ) : void
return void
    void FlipPlayer()
    {
        facingRight = !facingRight;
        //make the animators bool the same as the players
        anim.SetBool("FacingRight", facingRight);
        /*
        Vector3 theScale = transform.localScale;
        theScale.x *= -1;
        transform.localScale = theScale;
        */
    }