Exemple #1
0
        private void FixedUpdate()
        {
            // pass the input to the car!
            float h = CrossPlatformInputManager.GetAxis("Horizontal");
            float v = CrossPlatformInputManager.GetAxis("Vertical");

#if !MOBILE_INPUT
            float handbrake = CrossPlatformInputManager.GetAxis("Jump");
            m_Car.ManualControl(h, v, -v, handbrake);
#else
            m_Car.ManualControl(h, v, v, 0f);
#endif
        }