public static void AddComponent <T>(this IGameObjectWrapper gow) where T : Component { if (gow == null) { throw IEDebug.Exception(null, "GameObject cannot be null"); } gow.GameObject.AddComponent <T>(); }
public SetActiveInternal(IGameObjectWrapper go) { _go = go; }
public static bool HasComponent <T>(this IGameObjectWrapper gow) where T : Component { return((gow?.GameObject).HasComponent <T>()); }
public static IEnumerable <GameObject> Descendants(this IGameObjectWrapper gow, string name = null) { return((gow?.GameObject).Descendants(name)); }
public static GameObject Descendant(this IGameObjectWrapper gow, string name) { return((gow?.GameObject).Descendant(name)); }
public static GameObject Child(this IGameObjectWrapper gow, string name) { return((gow?.GameObject).Child(name)); }
public static IEnumerable <GameObject> Children(this IGameObjectWrapper gow, string name = null) { return((gow?.GameObject).Children(name)); }
public static T ComponentInDescendants <T>(this IGameObjectWrapper gow) where T : Component { return((gow?.GameObject).ComponentInDescendants <T>()); }
public static IEnumerable <T> Components <T>(this IGameObjectWrapper gow) where T : Component { return((gow?.GameObject).Components <T>()); }
public static bool IsAlive(this IGameObjectWrapper gow) { return(gow != null && gow.IsAlive); }