/* 공격당할 때 호출되는 함수 */ public override void OnHitAttack(AttackSkill _skill) { Debug.Log("[ " + name + " ]" + " Take [" + _skill.damage + "] Damage From [ " + _skill.skillCaster.name + " ]"); aniControl.ShowGetDamage(); //스탯에 피해량(damage) 정보를 넘김 status.TakeDamage(_skill.damage); //현재 체력이 바닥났을 경우 if (status.currentHP <= 0) { Dead(_skill.skillCaster); } DiscoverTarget(_skill.skillCaster); if (_skill.isKnockBack) { move.KnockBack(_skill.skillDirection * _skill.knockBackPower); } }