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