public void WalkOrRun() { if (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) { controller.Move(velocity * Time.deltaTime * runSpeed, directionalInput); } else { controller.Move(velocity * Time.deltaTime, directionalInput); } }