private void Awake() { Health = MaxHealth; Physics2D = GetComponent <EHPhysics2D>(); AnimReference = GetComponent <Animator>(); AssociatedHitboxComponent = GetComponent <EHHitboxActorComponent>(); AnimReference.SetFloat(ANIM_HITSTUN, -1); }
protected virtual void Awake() { HitboxActorComponent = GetComponentInParent <EHHitboxActorComponent>(); if (HitboxActorComponent == null) { Debug.LogWarning("There is no HitboxActor component found in the parent of this hitbox. All interactions will be skipped."); } }
private void Awake() { AssociatedAnimator = GetComponent <Animator>(); if (AssociatedAttackTable != null) { BaseGameOverseer.Instance.DataTableManager.AddAttackDataTable(AssociatedAttackTable); } AssociatedHitboxComponent = GetComponent <EHHitboxActorComponent>(); }
private void CheckForHitboxOverlap(EHHitboxActorComponent DComponent1, EHHitboxActorComponent DComponent2) { foreach (EHHitbox Hitbox1 in HitboxDictionary[DComponent1]) { foreach (EHHitbox Hitbox2 in HitboxDictionary[DComponent2]) { if (Hitbox1.gameObject.activeInHierarchy && Hitbox2.gameObject.activeInHierarchy) { Hitbox1.CheckForHitboxOverlap(Hitbox2); } } } }
protected virtual void Awake() { ProjectileAnim = GetComponent <Animator>(); Physics2D = GetComponent <EHPhysics2D>(); HitboxActorComponent = GetComponent <EHHitboxActorComponent>(); }