// animation event private void StartActiveHit() { if (hitbox == null) { hitbox = GetComponentInChildren <Hitbox>(); } hitbox.ActivateHitbox(true); }
public void attack() { animator.SetTrigger("hasHit"); hitbox.ActivateHitbox(); SoundManagerScript.PlaySound("hit"); // Cant spam rolls after a push. Bugs? canRoll = false; StartCoroutine(coolDownForRoll()); }
public void ActivateHitbox() { hitbox.ActivateHitbox(); }