{
//Input
horizontalInput = Input.GetAxis("Horizontal");
verticalInput = Input.GetAxis("Vertical");
//Direction
moveDirection = orientation.forward * verticalInput + orientation.right * horizontalInput;
//Jump
if (Input.GetKey(jumpKey) && grounded && readyToJump)
{
Jump();
readyToJump = false;
Invoke(nameof(ResetJump), jumpCooldown);
}
//Quickdash
if (Input.GetKey(quickdashKey) && readyToQuickdash)
{
Quickdash();
readyToQuickdash = false;
Invoke(nameof(ResetQuickdash), quickdashCooldown);
}
}