usingSystem;usingUnityEngine;usingUnityStandardAssets.CrossPlatformInput;namespaceUnityStandardAssets.Vehicles.Car{[RequireComponent(typeof(CarController))]publicclassCarUserControl:MonoBehaviour{privateCarControllerm_Car;// the car controller we want to useprivatevoidAwake(){// get the car controllerm_Car=GetComponent<CarController>();}privatevoidFixedUpdate(){// pass the input to the car!floath=CrossPlatformInputManager.GetAxis("Horizontal");floatv=CrossPlatformInputManager.GetAxis("Vertical");#if !MOBILE_INPUTfloathandbrake=CrossPlatformInputManager.GetAxis("Jump");m_Car.Move(h,v,v,handbrake);#elsem_Car.Move(h,v,v,0f);#endif}}}