示例#1
0
        private void FixedUpdate()
        {
            // pass the input to the car!
            float h = CrossPlatformInputManager.GetAxis("Horizontal1");
            float v = CrossPlatformInputManager.GetAxis("Vertical1");

            float handbrake = CrossPlatformInputManager.GetAxis("Jump1");

            m_Car.Move(h, v, v, handbrake);
            AnalogueSpeedConverter1.ShowSpeed(rb.velocity.magnitude, 0, 80);
        }
 // Use this for initialization
 void Start()
 {
     thisSpeed = this;
 }