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