Beispiel #1
0
    private void NormalAttack()
    {
        if (currentTarget != null)
        {
            effectmanager.BlastOnPosition(currentTarget.position, 0.7f);
            currentTarget.gameObject.GetComponent <Enemy>().TakeDamage(this.CharPhysicDamage);

            var targetEnemy = currentTarget.gameObject.GetComponent <Enemy>();
            Debug.Log("일반 공격 target : " + targetEnemy);
            _lastSkill.inherentCallback.SafeInvoke(targetEnemy); //근딜의 어택 시점
        }
        else
        {
            Debug.Log("attack fail");
        }
    }