private void OnAttacked(Direction direction)
 {
     itemCollector.CanCollect = false;
     characterGravityController.ApplyGravity();
     jumpController.CancelJump();
     jumpController.SetNotJumpmping();
     bufferedJump = -10f;
     animator.SetBool(IsAttacked, true);
     animator.SetBool(AnimatorIsJumping, false);
     animator.SetBool(AnimatorIsCarrying, false);
     if (hasItemCollector && itemCollector.HasItems)
     {
         itemCollector.DropItems();
     }
 }