void Awake()
 {
     //		hit = GetComponent<RaycastHit>();
     parent = GetComponentInParent<Rigidbody>();
     drawRay = GetComponent<DrawDebugRays>();
 }
Exemple #2
0
 void Awake()
 {
     carRigidBody = GetComponentInParent<Rigidbody>();
     drawRay = GetComponentInParent<DrawDebugRays>();
 }