public RiskAssessment(Vector3 infoTagStartScale, DriverCamera driverCam, AnimationCurve infoTagResize, Transform rayCastPos, GameObject gameObject, LayerMask mask, LinesUtils linesUtils) { this.infoTagStartScale = infoTagStartScale; this.driverCam = driverCam; this.infoTagResize = infoTagResize; this.rayCastPos = rayCastPos; this.gameObject = gameObject; this.mask = mask; this.linesUtils = linesUtils; this.rigidbody = gameObject.transform.parent.GetComponent <Rigidbody>(); this.vehicleController = gameObject.transform.parent.GetComponent <VehicleController>(); }