Exemple #1
0
    void FixedUpdate()
    {
        float acceleration = Input.GetAxis("Vertical");

        //direction = Input.GetAxis ("Horizontal");

        engine.Accelerate(acceleration);
        //engine.SetDirection(direction);
    }
Exemple #2
0
 void OnRightTriggerPressed(object sender, ControllerInteractionEventArgs e)
 {
     Debug.Log("Right Pressed: Button Pressure " + e.buttonPressure);
     engine.Accelerate(e.buttonPressure);
 }