Example #1
0
 public static void EnableComponents(this GameObject self, Type type, bool enable)
 {
     GameObjectUtil.EnableComponents(self, type, enable);
 }
Example #2
0
 /// <summary>
 /// 使某个类型的组件enable
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="self"></param>
 /// <param name="enable"></param>
 public static void EnableComponents <T>(this GameObject self, bool enable) where T : MonoBehaviour
 {
     GameObjectUtil.EnableComponents <T>(self, enable);
 }