Ejemplo n.º 1
0
        // animation event
        private void StartActiveHit()
        {
            if (hitbox == null)
            {
                hitbox = GetComponentInChildren <Hitbox>();
            }

            hitbox.ActivateHitbox(true);
        }
Ejemplo n.º 2
0
    public void attack()
    {
        animator.SetTrigger("hasHit");

        hitbox.ActivateHitbox();

        SoundManagerScript.PlaySound("hit");

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