void Start() { lineWidthStart = startPoint.bounds.extents.x * 2.0f; lineWidthEnd = endPoint.bounds.extents.x * 2.0f; lineRenderer.startWidth = lineWidthStart; lineRenderer.endWidth = lineWidthEnd; LineCollider.size = new Vector2(lineWidthStart, startPoint.bounds.extents.y * 2.0f); opCurves = this.GetComponent <OPCurves>(); InitLaserVector(); }