private void Awake()
 {
     Health                    = MaxHealth;
     Physics2D                 = GetComponent <EHPhysics2D>();
     AnimReference             = GetComponent <Animator>();
     AssociatedHitboxComponent = GetComponent <EHHitboxActorComponent>();
     AnimReference.SetFloat(ANIM_HITSTUN, -1);
 }
Exemplo n.º 2
0
    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.");
        }
    }
Exemplo n.º 3
0
 private void Awake()
 {
     AssociatedAnimator = GetComponent <Animator>();
     if (AssociatedAttackTable != null)
     {
         BaseGameOverseer.Instance.DataTableManager.AddAttackDataTable(AssociatedAttackTable);
     }
     AssociatedHitboxComponent = GetComponent <EHHitboxActorComponent>();
 }
Exemplo n.º 4
0
 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);
             }
         }
     }
 }
Exemplo n.º 5
0
 protected virtual void Awake()
 {
     ProjectileAnim       = GetComponent <Animator>();
     Physics2D            = GetComponent <EHPhysics2D>();
     HitboxActorComponent = GetComponent <EHHitboxActorComponent>();
 }