MovementManager.handleKeyboardInput C# (CSharp) Method

handleKeyboardInput() private method

private handleKeyboardInput ( ) : void
return void
  private void handleKeyboardInput() {
    if (Input.GetKey(_forwardKey)) {
      Debug.Log("Move me forward: " + (_moveSpeed * Time.deltaTime));
      leapMotionOVRController.transform.localPosition += leapMotionOVRController.transform.forward * _moveSpeed * Time.deltaTime;
    }

    if (Input.GetKey(_backwardKey)) {
      leapMotionOVRController.transform.localPosition += leapMotionOVRController.transform.forward * -1 * _moveSpeed * Time.deltaTime;
    }

    if (Input.GetKey(_leftKey)) {
      leapMotionOVRController.transform.localPosition += leapMotionOVRController.transform.right * -1 * _moveSpeed * Time.deltaTime;
    }

    if (Input.GetKey(_rightKey)) {
      leapMotionOVRController.transform.localPosition += leapMotionOVRController.transform.right * _moveSpeed * Time.deltaTime;
    }
  }