private void Start() { cc = this; _rgbd = GetComponent <Rigidbody> (); if (centerOfMass != null && _rgbd != null) { _rgbd.centerOfMass = centerOfMass.localPosition; } for (int i = 0; i < wheels.Length; ++i) { VisualizeWheel(wheels [i]); } }
// Use this for initialization void Start() { _mr = GetComponent <MeshRenderer> (); _mr.enabled = false; _cc = GameObject.FindObjectOfType <bs_CarController> (); }