Ejemplo n.º 1
0
        public void AttackStart()
        {
            anim.SetTrigger("attack");
            sfx.Play(sfx.clipAttackMelee);

            attacking = true;

            movement.enabled = false;
        }
Ejemplo n.º 2
0
        public override void TakeHit(float damage)
        {
            if (dead)
            {
                return;
            }

            sfx.Play(sfx.clipsHit);

            if (controller.stats.shield)
            {
                controller.stats.shield = false;
                return;
            }

            Die();
        }