Beispiel #1
0
 private void SetRoutePoints()
 {
     Transform parent = transform.parent;
     if (parent == null)
     {
         return;
     }
     Leader leader = parent.gameObject.GetComponent<Leader>();
     if (leader == null)
     {
         return;
     }
     routePoints = leader.GetRoutePoints();
 }