Hunter.FlipEnemy C# (CSharp) Method

FlipEnemy() public method

public FlipEnemy ( ) : void
return void
    void FlipEnemy()
    {
        facingRight = !facingRight;
        Vector2 theScale = transform.localScale;
        theScale.x *= -1;
        transform.localScale = theScale;
    }