DW_ThirdPersonController.ApplyJumping C# (CSharp) Method

ApplyJumping() private method

private ApplyJumping ( ) : void
return void
    private void ApplyJumping() {
        // Prevent jumping too fast after each other
        if (_lastJumpTime + JumpRepeatTime > Time.time) {
            return;
        }

        if (IsGrounded()) {
            // Jump
            // - Only when pressing the button down
            // - With a timeout so you can press the button slightly before landing		
            if (CanJump && Time.time < _lastJumpButtonTime + JumpTimeout) {
                VerticalSpeed = CalculateJumpVerticalSpeed(JumpHeight);
                SendMessage("DidJump", SendMessageOptions.DontRequireReceiver);
            }
        }
    }