void FixedUpdate() { float acceleration = Input.GetAxis("Vertical"); //direction = Input.GetAxis ("Horizontal"); engine.Accelerate(acceleration); //engine.SetDirection(direction); }
void OnRightTriggerPressed(object sender, ControllerInteractionEventArgs e) { Debug.Log("Right Pressed: Button Pressure " + e.buttonPressure); engine.Accelerate(e.buttonPressure); }