Exemple #1
0
        // animation event
        private void StartActiveHit()
        {
            if (hitbox == null)
            {
                hitbox = GetComponentInChildren <Hitbox>();
            }

            hitbox.ActivateHitbox(true);
        }
Exemple #2
0
    public void attack()
    {
        animator.SetTrigger("hasHit");

        hitbox.ActivateHitbox();

        SoundManagerScript.PlaySound("hit");

        // Cant spam rolls after a push. Bugs?
        canRoll = false;
        StartCoroutine(coolDownForRoll());
    }
Exemple #3
0
 public void ActivateHitbox()
 {
     hitbox.ActivateHitbox();
 }