// Use this for initialization void Start() { StartTransform = GameObject.Find("Cow Anchor").transform; EndTransform = transform.Find("Balloon/Anchor"); line = GetComponent <NeatLine>(); if (line == null) { line = gameObject.AddComponent <NeatLine>(); line.Thickness = 0.05f; line.Color = Color.black; } }
private void OnEnable() { line = target as NeatLine; }