private void Jump() { if (IsGrounded() && Input.GetKeyDown(KeyCode.W)) { m_SpriteAnimator.AnimateJump(); m_Rigidbody2d.velocity = new Vector2(m_Rigidbody2d.velocity.x, m_JumpSpeed); } }