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