void Start() { wheel_col = GetComponent<WheelCollider>(); vehicleRigid = vehicle.GetComponent<Rigidbody>(); if(FindObjectOfType(typeof(SAICSkidmarks))) skidmarks = FindObjectOfType(typeof(SAICSkidmarks)) as SAICSkidmarks; else Debug.Log("No skidmarks object found. Skidmarks will not be drawn. Drag ''SAICSkidmarksManager'' from Prefabs folder, and drop on to your existing scene..."); }
void Start() { wheelCollider = GetComponent<WheelCollider>(); carController = transform.root.GetComponent<SAICSmartAICar>(); carRigid = carController.GetComponent<Rigidbody>(); if(FindObjectOfType(typeof(SAICSkidmarks))) skidmarks = FindObjectOfType(typeof(SAICSkidmarks)) as SAICSkidmarks; else Debug.Log("No skidmarks object found. Skidmarks will not be drawn. Drag ''RCCSkidmarksManager'' from Prefabs folder, and drop on to your existing scene..."); }
void Start() { wheel_col = GetComponent <WheelCollider>(); vehicleRigid = vehicle.GetComponent <Rigidbody>(); if (FindObjectOfType(typeof(SAICSkidmarks))) { skidmarks = FindObjectOfType(typeof(SAICSkidmarks)) as SAICSkidmarks; } else { Debug.Log("No skidmarks object found. Skidmarks will not be drawn. Drag ''SAICSkidmarksManager'' from Prefabs folder, and drop on to your existing scene..."); } }
void Start() { wheelCollider = GetComponent <WheelCollider>(); carController = transform.root.GetComponent <SAICSmartAICar>(); carRigid = carController.GetComponent <Rigidbody>(); if (FindObjectOfType(typeof(SAICSkidmarks))) { skidmarks = FindObjectOfType(typeof(SAICSkidmarks)) as SAICSkidmarks; } else { Debug.Log("No skidmarks object found. Skidmarks will not be drawn. Drag ''RCCSkidmarksManager'' from Prefabs folder, and drop on to your existing scene..."); } }