PlayerControl.FlipPlayer C# (CSharp) Méthode

FlipPlayer() public méthode

public FlipPlayer ( ) : void
Résultat 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;
        */
    }