Пример #1
0
 public static Component[] FindComponentsInParent(this Transform self, Type type, string name,
                                                  bool isStartWith = true)
 {
     return(TransformUtil.FindComponentsInParent(self, type, name, isStartWith));
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="transform"></param>
 /// <param name="name"></param>
 /// <returns></returns>
 public static T[] FindComponentsInParent <T>(this Transform self, string name, bool isStartWith = true)
     where T : Component
 {
     return(TransformUtil.FindComponentsInParent <T>(self, name, isStartWith));
 }