void Start() { soundScript = FindObjectOfType (typeof(SoundController_CSharp)) as SoundController_CSharp; }
// Use this for initialization void Start() { sound = transform.root.GetComponent<SoundController_CSharp>(); car = GetComponent<Car_CSharp>(); }
void Start() { wheels = new Wheel[frontWheels.Length + rearWheels.Length]; sound = transform.GetComponent<SoundController_CSharp> (); // Measuring 1 - 60 SetupWheelColliders (); SetupCenterOfMass (); topSpeed = Convert_Miles_Per_Hour_To_Meters_Per_Second (topSpeed); SetupGears (); SetUpSkidmarks (); initialDragMultiplierX = dragMultiplier.x; }