void Block() { if (Input.GetKeyDown(KeyCode.B)) { attackAnim.BlockingAnim(true); blocking.IsBlocking(true); movement.enabled = false; } else if (Input.GetKeyUp(KeyCode.B)) { attackAnim.BlockingAnim(false); blocking.IsBlocking(false); attackAnim.UnFreezeAnim(); movement.enabled = true; } }