private void Jump() { jumpTime = Time.deltaTime; SetAnimation("Jump"); moveSound.Jump(); //vertical velocity if (jumpSpeed < vertVel + minJumpSpeed) { vertVel += minJumpSpeed; } else { vertVel = jumpSpeed; } //horizontal velocity horVel *= airSpeed / walkSpeed; motionState = MotionState.air; }