Пример #1
0
    void AttackTargetOnce()
    {
        lookAtEnemy = true;
        animator.SetTrigger(ATTACK_TRIGGER);
        float damageDelay = currentWeaponConfig.GetDamageDelay();

        SetAttackAnimation();
        StartCoroutine(DamageAfterDelay(damageDelay));
    }
Пример #2
0
        void AttackTargetOnce()
        {
            transform.LookAt(target.transform);
            animator.SetTrigger(ATTACK_TRIGGER);
            float damageDelay = currentWeaponConfig.GetDamageDelay();

            SetAttackAnimation();
            StartCoroutine(DamageAfterDelay(damageDelay));
        }