// Update is called once per frame void Update() { anim.SetBool("bWalking", movement2d.IsInMotion()); if (movement2d.GetSideInput() > 0 && isFacingRight == false) { Flip(); } else if (movement2d.GetSideInput() < 0 && isFacingRight == true) { Flip(); } }