/// <summary> /// Sets up all protected parameters. /// </summary> /// <param name="parent"> Object in the scene (called RuntimeRows) that is a parent to all generated rows of elements. </param> protected void SetupNet(Transform parent) { knotClone = GameObject.Find("KnotForNet"); UpdateKnot(); knotClone.transform.parent = parent; knotClone.tag = "knotrow"; knotClone.layer = 9; splineComputer = knotClone.GetComponent <SplineComputer>(); basePoints = splineComputer.GetPoints(); basePointCount = basePoints.Length; currentPointCount = basePointCount; point_size = splineComputer.GetPointSize(0); updateValues = false; }