Beispiel #1
0
 void Start()
 {
     if (Rails != null)
     {
         foreach (var Rail in Rails)
         {
             //targetsに各レールのガイドのtransformを入れる
             targets.Add(Rail.GetComponentsInChildrenWithoutSelf <Transform>());
         }
         //transformをVector3に
         targetVectors = targets.ConvertAll(new Converter <Transform[], Vector3[]>(ToVector3));
         PathSetUp();
     }
 }