Exemple #1
0
 static public void AddChildrenAtSelf <T>(this Component item, IEnumerable <T> children) where T : Component
 {
     children.Process(c => item.AddChildAtSelf(c));
 }
Exemple #2
0
 static public void AddChildrenAtSelf(this Component item, IEnumerable <GameObject> children)
 {
     children.Process(c => item.AddChildAtSelf(c));
 }
Exemple #3
0
 static public T AddChildAtSelf <T>(this Component item, T child) where T : Component
 {
     item.AddChildAtSelf(child.IfNotNull(c => c.gameObject));
     return(child);
 }
Exemple #4
0
 static public GameObject SpawnEmptyChildAtSelf(this Component item)
 {
     return(item.AddChildAtSelf(new GameObject()));
 }
Exemple #5
0
 static public T SpawnChildAtSelf <T>(this Component item, T prefab) where T : Component
 {
     return(item.AddChildAtSelf(prefab.SpawnInstance()));
 }
Exemple #6
0
 static public GameObject SpawnChildAtSelf(this Component item, GameObject prefab)
 {
     return(item.AddChildAtSelf(prefab.SpawnInstance()));
 }