private void GetInput() { // horizontalInput = Input.GetAxis("Horizontal"); // verticalInput = Input.GetAxis("Vertical"); // breaking = Input.GetButton("Brake"); if (input != null) { input.GetInputs(this); } }
private void GetInput() { // horizontalInput = Input.GetAxis("Horizontal"); // verticalInput = Input.GetAxis("Vertical"); // breaking = Input.GetButton("Brake"); if (input != null) { CarInputs inputs = input.GetInputs(this); horizontalInput = inputs.horizontal; verticalInput = inputs.vertical; braking = inputs.braking; // input.GetInputs(this); } }