using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityStandardAssets.Vehicles.Car; /// /// 待修车辆控制器 为保持Mesh和WheelCollider同步 需要调用Move函数 /// public class NoCtrlCar : MonoBehaviour { CarController carController; // Start is called before the first frame update void Start() { carController = this.GetComponent(); } // Update is called once per frame void FixedUpdate() { carController.Move(0,0,0,1); } }