Beispiel #1
0
 public static T GetOrAddComponent <T> (this GameObject go) where T : Component
 {
     return(ObjectUtil.GetOrAddComponent <T> (go));
 }
Beispiel #2
0
 public static void RemoveComponent <T> (this GameObject go) where T : Component
 {
     ObjectUtil.RemoveComponent <T> (go);
 }
Beispiel #3
0
 public static void RemoveComponent(this GameObject go, System.Type type)
 {
     ObjectUtil.RemoveComponent(go, type);
 }
Beispiel #4
0
 public static Component GetOrAddComponent(this GameObject go, System.Type type)
 {
     return(ObjectUtil.GetOrAddComponent(go, type));
 }