예제 #1
0
        void Start()
        {
            GetComponent <Rigidbody>().centerOfMass = centerOfMass;

            Transform[] pathTransforms = path.GetComponentsInChildren <Transform>();
            nodes = new List <Transform>();
            EngineGetNodes(pathTransforms, nodes);

            sensor     = GetComponent <CarBrain>();
            controlCar = GetComponent <CarDashBoard>();
        }
예제 #2
0
 private void Start()
 {
     controlCar = GetComponent <CarDashBoard>();
 }