몬스터용 데이터파이프라인 개선

애니메이션 컨트롤러 및 모델 설정 기능 추가
몬스터용 애니메이션 컨트롤러 생성
This commit is contained in:
2026-02-01 01:42:45 +09:00
parent 2593b6dd37
commit 5d0ed26578
29 changed files with 8634 additions and 8286 deletions

View File

@@ -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()
{