Beispiel #1
0
 public static T Get <T>(this ComponentObject component, string path)
 {
     return(component.transform.Find(path).GetComponent <T>());
 }
Beispiel #2
0
 public static T Get <T>(this ComponentObject component)
 {
     return(component.transform.gameObject.GetComponent <T>());
 }