PlayerControl.FlipPlayer C# (CSharp) 메소드

FlipPlayer() 공개 메소드

public FlipPlayer ( ) : void
리턴 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;
        */
    }