Пример #1
0
 public TechnoExt(Pointer <TechnoClass> OwnerObject) : base(OwnerObject)
 {
     _extComponent          = new ExtComponent <TechnoExt>(this, 0, "TechnoExt root component");
     _decoratorComponent    = new DecoratorComponent();
     _extComponent.OnAwake += () => ScriptManager.CreateScriptableTo(_extComponent, Type.Scripts, this);
     _extComponent.OnAwake += () => _decoratorComponent.AttachToComponent(_extComponent);
 }
Пример #2
0
 public static bool HasComponentInChildrensWithTagAndLayer <T>(this GameObject gameObject, string tag, LayerMask layer, int depth = 99, bool startWithOurSelf = false) where T : Component
 {
     return(ExtComponent.GetExtComponentInChildrensWithTagAndLayer <T>(gameObject, tag, layer, depth, startWithOurSelf) != null);
 }
Пример #3
0
 public static bool HasComponentInChildrensWithLayer <T>(this Component component, LayerMask layer, int depth = 99, bool startWithOurSelf = false) where T : Component
 {
     return(ExtComponent.GetExtComponentInChildrensWithLayer <T>(component, layer, depth, startWithOurSelf) != null);
 }
Пример #4
0
 public static bool HasComponentInChildrensWithTag <T>(this Component component, string tag, int depth = 99, bool startWithOurSelf = false) where T : Component
 {
     return(ExtComponent.GetExtComponentInChildrensWithTag <T>(component, tag, depth, startWithOurSelf) != null);
 }
Пример #5
0
 public static bool HasComponentInChildrens <T>(this GameObject gameObject, int depth = 99, bool startWithOurSelf = false) where T : Component
 {
     return(ExtComponent.GetExtComponentInChildrens <T>(gameObject, depth, startWithOurSelf) != null);
 }
Пример #6
0
 public static bool HasComponentInParentsWithTagAndLayer <T>(this Component component, string tag, LayerMask layer, int depth = 99, bool startWithOurSelf = false) where T : Component
 {
     return(ExtComponent.GetExtComponentsInParentsWithTagAndLayer <T>(component, tag, layer, depth, startWithOurSelf) != null);
 }
Пример #7
0
 public static bool HasComponentInParentsWithTag <T>(this GameObject gameObject, LayerMask layer, int depth = 99, bool startWithOurSelf = false) where T : Component
 {
     return(ExtComponent.GetExtComponentsInParentsWithLayer <T>(gameObject, layer, depth, startWithOurSelf) != null);
 }
Пример #8
0
 public static bool HasComponentInParentsWithTag <T>(this GameObject gameObject, string tag, int depth = 99, bool startWithOurSelf = false) where T : Component
 {
     return(ExtComponent.GetExtComponentInParentsWithTag <T>(gameObject, tag, depth, startWithOurSelf) != null);
 }
Пример #9
0
 public static bool HasComponentInParents <T>(this Component component, int depth = 99, bool startWithOurSelf = false) where T : Component
 {
     return(ExtComponent.GetExtComponentInParents <T>(component, depth, startWithOurSelf) != null);
 }