public void Moving() { moveInput = new Vector3(inputHorizontal, inputVertical, 0f); rpgCharacterController.SetMoveInput(moveInput); // Set the input on the jump axis every frame. Vector3 jumpInput = isJumpHeld ? Vector3.up : Vector3.zero; rpgCharacterController.SetJumpInput(jumpInput); // If we pressed jump button this frame, jump. if (inputJump && rpgCharacterController.CanStartAction("Jump")) { rpgCharacterController.StartAction("Jump"); } }