몬스터용 데이터파이프라인 개선
애니메이션 컨트롤러 및 모델 설정 기능 추가 몬스터용 애니메이션 컨트롤러 생성
This commit is contained in:
@@ -58,6 +58,9 @@ namespace Northbound
|
||||
[Tooltip("디버그 정보 표시")]
|
||||
public bool showDebugInfo = true;
|
||||
|
||||
[Header("Events")]
|
||||
public System.Action<GameObject> OnAttackPerformed;
|
||||
|
||||
private NavMeshAgent _agent;
|
||||
private EnemyUnit _enemyUnit;
|
||||
private Transform _coreTransform;
|
||||
@@ -390,6 +393,8 @@ namespace Northbound
|
||||
damageable.TakeDamage(attackDamage, NetworkObjectId);
|
||||
_lastAttackTime = Time.time;
|
||||
|
||||
OnAttackPerformed?.Invoke(target);
|
||||
|
||||
if (showDebugInfo)
|
||||
Debug.Log($"<color=red>[EnemyAI] {gameObject.name} -> {target.name} 타격 성공! (데미지: {attackDamage})</color>");
|
||||
}
|
||||
@@ -502,6 +507,15 @@ namespace Northbound
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public API
|
||||
|
||||
public EnemyAIState GetCurrentState()
|
||||
{
|
||||
return _currentState.Value;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Gizmos (기존 코드 유지)
|
||||
private void OnDrawGizmos()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user