Exemplo n.º 1
0
        private void FixedUpdate()
        {
            // pass the input to the car!
            float moveHorizontal = CrossPlatformInputManager.GetAxis("Horizontal");
            float moveVertical   = CrossPlatformInputManager.GetAxis("Vertical");

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