private void Update()
    {
        if (isDead)
        {
            return;
        }

        if (IsGrounded())
        {
            if (Input.GetKeyDown(KeyCode.Space) || Input.GetKeyDown(KeyCode.UpArrow))
            {
                float jumpVelocity = 100f;
                rigidbody2d.velocity = Vector2.up * jumpVelocity;
            }
        }

        HandleMovement();

        // Set Animations
        if (IsGrounded())
        {
            if (rigidbody2d.velocity.x == 0)
            {
                playerBase.PlayIdleAnim();
            }
            else
            {
                playerBase.PlayMoveAnim(new Vector2(rigidbody2d.velocity.x, 0f));
            }
        }
        else
        {
            playerBase.PlayJumpAnim(rigidbody2d.velocity);
        }

        if (rigidbody2d.velocity.y < -300f)
        {
            // Falling way too fast, dead
            Die();
        }
    }