Beispiel #1
0
 // 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;
     }
 }
Beispiel #2
0
 private void OnEnable()
 {
     line = target as NeatLine;
 }