Beispiel #1
0
 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]);
     }
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     _mr         = GetComponent <MeshRenderer> ();
     _mr.enabled = false;
     _cc         = GameObject.FindObjectOfType <bs_CarController> ();
 }