Exemple #1
0
        private void AttackTargetOnce()
        {
            transform.LookAt(target.transform);
            animator.SetTrigger(ATTACK_TRIGGER);
            float damageDelay = currentWeaponConfig.GetDamageDelay();

            SetAttackAnimation();
            audioSource.PlayOneShot(currentWeaponConfig.GetRandomHitClips());
            StartCoroutine(DamageAfterDelay(damageDelay));
        }